摘要: this对象 1.纯粹的函数调用 function test(){ this.x = 1; alert(this.x); } test();//1 2.函数作为某个对象的方法进行调用,这是this就指向这个上级的对象。 function test() { alert(this.x); } var o 阅读全文
posted @ 2016-11-14 22:49 W+7 阅读(142) 评论(0) 推荐(0)