摘要: 1. this 默认是 window2. 只能通过 .call 、 .apply 来指定 this3. fn() 等价于 fn.call() ; obj.fn() 等价于 obj.fn.call(obj) function fn(){ console.log(this.length); } var 阅读全文
posted @ 2016-09-20 21:32 怪到抽筋 阅读(90) 评论(0) 推荐(0) 编辑