把arguments转换为数组的方式

第一种

[].slice.call(arguments)

第二种

Array.prototype.slice.call(arguments)
posted on 2024-02-28 11:48  Steven_YF  阅读(2)  评论(0编辑  收藏  举报