Home  >  Q&A  >  body text

Control layer returns data, error solution

Writing the last sentence of the code to get the return value will not go wrong!

---------------------

HTML

------ --------------------

                                                                                                                                                                 type="checkbox"value="res.res.id"name=""></td><td>' res.res.id '</td><td>' res.res. cate_order '</td><td>' res.res.cate_name '</td><td class="td-manage"><a title="edit"href="javascript:;" onclick="cate_edit(\'edit\',\'cate-edit.html\',\'4\',\'\',\'510\')" class="ml-5" style="text -decoration:none"><i class="layui-icon"></i></a><a title="Delete"href="javascript:;"onclick= "cate_del(this,\'1\')"style="text-decoration:none"><i class="layui-icon"></i></a>< ;/td></tr>');



-------------------------- ----------

controller

--------------------------

return json(['status'=>$status,'message'=>$request->param('cate_name'),'res'=>$res]);


“橙”-景安服务器**“橙”-景安服务器**2447 days ago1252

reply all(1)I'll reply

  • 吓的一滚

    吓的一滚2019-04-18 10:44:48

    give it a like

    reply
    0
  • Cancelreply