
为什么使用call(this), 而不是直接使用(function(){})();
"use strict"
function Foo() {
(function() {
console.log(this);
// > Foo
}).call(this);
(function() {
console.log(this);
// > undefined in strict mode, or Window in non strict mode
})();
}
var bar = new Foo;