修复isAjax方法判断错误

This commit is contained in:
welefen 2014-06-07 12:59:50 +08:00
parent 4f2b88e0bc
commit 1b1e5fbced

View File

@ -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参数