search

Home  >  Q&A  >  body text

tp3.2.3$.ajax cannot return data using $this->ajaxReturn()

As mentioned in 3.2.3, the front-end uses $.ajax() in jquery

As long as $this->ajaxReturn(); is not used in the controller, the front-end can receive return data. For example, echo json_encode($data);exit;

But as long as the $this->ajaxReturn() function is used, the front end will execute error: function()

xrxr2274 days ago839

reply all(0)I'll reply

No reply
  • Cancelreply