改变函数内this的指向,js提供了三种方法:1、call() 2、apply() 3、bind()

1、call()

2、apply()

图片说明

3、bind()
图片说明
图片说明

总结:
图片说明