« 微微风吟 | 首页 | 蚁族 »
个人主页: http://www.cssoul.com
在 Javascript的this用法 留言:
this只能在函数内部使用,很明显不正确 this.x = 1; alert(this.x); 这样使用this有错么?this此时指代window对象
2011-05-25 23:27:47
留言(1 条)
在 Javascript的this用法 留言:
this只能在函数内部使用,很明显不正确
this.x = 1;
alert(this.x);
这样使用this有错么?this此时指代window对象
2011-05-25 23:27:47