获取返回值的那段代码最后一句这样写不会出错!
-------------------------
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="编辑"href="javascript:;"onclick="cate_edit(\'编辑\',\'cate-edit.html\',\'4\',\'\',\'510\')"class="ml-5"style="text-decoration:none"><i class="layui-icon"></i></a><a title="删除"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]);