eEhdsa

2009年9月28日

JavaScript 中的 this, call, apply, bind...

摘要: 今天无意间在这里看到一篇说js中this的文章,看后满是疑问。。。作者使用this.xxproperty取某些属性得到了undefined等一系列非意料中的结果于是认为导致这种情况是因为之前有过对this.propertyX赋值从而改变了this所至。。。好吧...一: this看这个代码当然要取到button dom node的信息也是十分简单的如上代码,传过去this,当做参数处理即可当然也有... 阅读全文

posted @ 2009-09-28 15:46 eEhdsa 阅读(3027) 评论(4) 推荐(2) 编辑

导航