var Test ={
foo:"test",
func:function () {
var self=this;
console.log(this.foo);
console.log(self.foo);
(function () {
})();
}
};
Test.func();
输出 test test undefined test
相关分类