摘要:
```var i = { name:"a", getName:function(){ //this,就是i对象 return this.name; }}imooc.getName(); // a``````p.addEventListener('click',function(){ //this === p //以下两者的修改都是等价的 ... 阅读全文
摘要:
关于属性 Javascript: getAttribute setAttribute removeAttribute JQuery: attr removeAttr 1. attr(传入属性名):获取属性的值 2. attr(属性名, 属性值):设置属性的值 3. attr(属性名,函数值):设置属 阅读全文