获取返回值的那段代码最后一句这样写不会出错!
-------------------------
HTML
--------------------------
$('#x-link').prepend('
-------------------------
controller
--------------------------
return json(['status'=>$status,'message'=>$request->param('cate_name'),'res'=>$res]);
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
赞一个