dashengzi66 / note

学习笔记
0 stars 0 forks source link

JS中this分析 #9

Open dashengzi66 opened 3 years ago

dashengzi66 commented 3 years ago

this:函数执行的主体(谁执行的函数)

全局上下文中的this:window 块级上下文中没有自己的this,所有的this都是继承上级上下文中的this(箭头函数也是)

事件绑定