在看一些框架源码时常常用到:
Array.prototype.slice.call(arguments)
来把一个方法的参数(伪数组)转换为一个真正的数组,这里为什么说 arguments是伪数组呢?
慕哥9229398
相关分类