call 张泽__ 2019-12-16 126 阅读1分钟 一句话介绍 call:call() 方法在使用一个指定的 this 值和若干个指定的参数值的前提下调用某个函数或方法。举个例子:var foo = { value: 1 }; function bar() { console.log(this.value); } bar.call(foo); // 1注意两点:call 改变了 this 的指向,指向到 foobar 函数执行了。未完待续。。。