在非严格模式下,函数的调用上下文(this的值)是全局对象。在严格模式下,调用上下文是undefined。
“this”可以用来判断当前是否为严格模式:
var strict = (function(){
return !this;
}());