« 微微风吟 | 首页 | 蚁族 »

黑幕困兽

个人主页: http://www.cssoul.com

留言(1 条)

Javascript的this用法 留言:

this只能在函数内部使用,很明显不正确
this.x = 1;
alert(this.x);
这样使用this有错么?this此时指代window对象