获取之后需要返回数据到html页面段,怎么返回
获取之后需要返回数据到html页面段,怎么返回?
HTML页面,ajax是基于id的,所有用id表示。 拿到的数据会显示在这里
ajax源码: $(document).ready(function() { $.ajax({ url : "admin/get_online_ganbu.php",//后台请求的数据,用的是PHP dataType : "json",//数据格式 type : "post",//请求方式 async : false,//是否异步请求 success : function(data) { //如果请求成功,返回数据。 var html = "" for(var i=0i