Den letzten Satz des Codes zu schreiben, um den Rückgabewert zu erhalten, wird nicht schiefgehen!
----------------------------------
HTML
--------- --------- --------
$('#x-link').prepend('<tr><td><input 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]);
赞一个