response类调整 data type 可以单独设置

This commit is contained in:
thinkphp
2015-12-22 23:40:45 +08:00
parent daf7d3adbe
commit 633a086950
4 changed files with 77 additions and 22 deletions

View File

@@ -13,8 +13,8 @@ return [
'default_return_type' => 'html',
// 默认语言
'default_lang' => 'zh-cn',
// response输出方式 0 echo 1 return 2 exit
'response_type' => 0,
// response是否返回方式
'response_return' => false,
// 默认AJAX 数据返回格式,可选JSON XML ...
'default_ajax_return' => 'JSON',
// 默认JSONP格式返回的处理方法