tp5默認返回數據格式是html格式,根據實際情況,可以修改爲json格式
這時只需要在application下的config.php文件下修改
// 默認輸出類型 /* 'default_return_type' => 'html',*/ 'default_return_type' => 'json',(改爲json格式)
tp5默認返回數據格式是html格式,根據實際情況,可以修改爲json格式
這時只需要在application下的config.php文件下修改
// 默認輸出類型 /* 'default_return_type' => 'html',*/ 'default_return_type' => 'json',(改爲json格式)