且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Laravel 5.4中使用setInterval进行AJAX

更新时间:2023-02-11 18:49:59

您快到了;只是您返回的格式错误:

You are almost there; just you are returning it the wrong format:

代替

return view('page',['json'=>$json]);

return response()->json($results_array);