阅读背景:

bind和forEach同时绑定this的时候,如何确定this指向?_包磊磊的博客

来源:互联网 
"use strict";
const a=[1,2,30];
const b=[4,5,60];
const c=[7,8,90];
a.forEach((function (){
  console.log(this);
}).bind(globalThis),b);"use strict";
const a=[1,2,30];
const b=[4,5,60



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: