- 博客(1)
- 收藏
- 关注
原创 this的理解
什么是this 待写 this的特点 this的绑定是动态的,当函数执行时才绑定,而不是书写时绑定。 this的绑定规则 没有明确的调用对象时,this指向全局的window对象。 function foo(){ console.log(this) } foo(); // window 具有迷惑性的例子1: function foo(){ function bar(){ con...
2019-09-17 11:40:44 231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人