Fork me on GitHub
摘要: JS中 this 在各个环境下的指向问题! 一:this在普通函数中的指向 --> window 1 // 普通函数中的this指向 > window 2 function fn(){ 3 console.log(this) // ES5 this > window 4 console.log(th 阅读全文
posted @ 2020-07-11 17:21 Dm码羊 阅读(284) 评论(0) 推荐(0) 编辑