改进response类的returnData方法

This commit is contained in:
thinkphp
2015-12-22 15:41:16 +08:00
parent f726fbf6d2
commit 9ed8ca5e17
4 changed files with 22 additions and 20 deletions

View File

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