call,apply都属于Function.prototype的一个方法.
相同点: 结果都一样。
不同点:传入参数不同。
call():传入this
apply():传入(this,数组)
bind():传入对象{}
参数作用>>>>>>>>>>>>>>修改了this的当前作用对象。
call,apply都属于Function.prototype的一个方法.
相同点: 结果都一样。
不同点:传入参数不同。
call():传入this
apply():传入(this,数组)
bind():传入对象{}
参数作用>>>>>>>>>>>>>>修改了this的当前作用对象。