this
this对象指函数的调用对象,默认指向window
0. func() this指向window method创建在window上
1. abc.func.call(efd) //apply bind this指向参数efd method创建在abc上
2. XXX.func() this指向XXX对象 method创建在XXX上
3. new func() this指向新对象func{} method创建在(和0,1条同理)
特殊用法:改变传参方式 a.b.apply(a, [1,2,3])

浙公网安备 33010602011771号