浪费了很长时间。。。。
数据结构问题。。。
$data = DB::select('select id,title text from products');
return $data;
$data = DB::select('select id,title text from products');
return json_encode($data);
浪费了很长时间。。。。
数据结构问题。。。
$data = DB::select('select id,title text from products');
return $data;
$data = DB::select('select id,title text from products');
return json_encode($data);