摘要: 这里谈谈我对this的一些比较浅的理解this是指向当前的对象,那就是说,必须是对象里面才拥有this,如果不是对象,那this 是指向window对象例子:function a(){ console.log(this)}a()输出的是window对象。function a(){ this.aa... 阅读全文
posted @ 2015-06-09 18:10 cloudying 阅读(396) 评论(0) 推荐(0) 编辑