自己写一个函数 传数据 function ajaxReturn($code,$data,$msg="") { $ret = [ 'code'=>$code, 'result'=>$data, 'msg'=>$code ]; header('Content-Type:application/json;charset=utf-8'); return json_encode($ret,256); }
tp5 ajax
最新推荐文章于 2021-08-06 15:18:52 发布
自己写一个函数 传数据 function ajaxReturn($code,$data,$msg="") { $ret = [ 'code'=>$code, 'result'=>$data, 'msg'=>$code ]; header('Content-Type:application/json;charset=utf-8'); return json_encode($ret,256); }