mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
修复isAjax方法判断错误
This commit is contained in:
parent
4f2b88e0bc
commit
1b1e5fbced
@ -69,7 +69,7 @@ module.exports = Class(function() {
|
||||
* @return {Boolean} [description]
|
||||
*/
|
||||
isAjax: function() {
|
||||
return this.header("X-Requested-With").toLowerCase() === "xmlhttprequest";
|
||||
return this.header("x-requested-with") === "XMLHttpRequest";
|
||||
},
|
||||
/**
|
||||
* 获取QUERY参数
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user