无法理解javascript调用方法

时间:2019-05-26 06:07:49

标签: javascript this

为什么在控制台中this.length等于3并从中获取值'3'

   function normalize(){
      console.log(this.length)
      console.log(this.c.map(n => n/this.length))
   }
   normalize.call({c:[0,2,3], length})

0 个答案:

没有答案