this

2019-08-22  本文已影响0人  逆风飘游的鱼

fn()

this => window/global

obj.fn()

this => obj

fn.call(xx)

this => xx

fn.apply(xx)

this => xx

fn.bind(xx)

this => xx

new Fn()

this => 新的对象

fn = ()=> {}

this => 外面的 this

上一篇下一篇

猜你喜欢

热点阅读