ajax返回数组集-接收展示,求大神!!!!!

浏览:849 发布日期:2016/05/17 分类:求助交流 关键字: ajax返回数组 html页面接收
js-代码:
<script type="text/javascript">
$(function() {
$("#save").click(function(){
$.ajax({
cache: false,
type: "POST",
dataType : "json",
url : '{:U("Portal/Employees/a1_hand")}',
data: {id : 1},
success: function(msg){
$("#show").append(msg);
}

});
});
});
</script>
php-处理代码:

public function a1_hand(){
$id=$_POST['id'];
$asd=M('student');
$DemoArry=$asd->where('a_id='.$id)->select();
$this->ajaxReturn($DemoArry,'JSON');
}


html -页面代码:
<div id="show">
???怎么接收呢?
</div>

最佳答案
评论( 相关
后面还有条评论,点击查看>>