Array.prototype.forEach.call(arguments,function(item){ num += item * 1 })
来源:2-19 Rest Parameter(怎么处理不确定参数?)

德玛西亚之前端
2020-10-30
请问这一句具体是什么意思,有点看不懂,麻烦老师具体解答一下
写回答
1回答
-
慕粉1926294646
2020-11-02
想看懂这句话需要理解函数的call这个api,Array.prototype.forEach是个函数,具体用法 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/call
00
相似问题