1 1 //编写类方法用$this->ajaxReturn()返回数据
2 2 public function index(){
3 3       $user = M('User');
4 5       $data = $user->where($map)->field('name,data')->select();
5 6       $this->ajaxReturn($data,'JSON');
6 7     }

 

 

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-01-24
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2021-11-23
  • 2021-06-19
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案