frontend-guidelines-zh-CN icon indicating copy to clipboard operation
frontend-guidelines-zh-CN copied to clipboard

请忘记arguments对象

Open 1gehunzi opened this issue 8 years ago • 4 comments

赞!!! 下面好像有一点点错误

别忘了arguments对象。额外的参数总会是一个较好的选择.

1gehunzi avatar Feb 21 '17 14:02 1gehunzi

嗯~o( ̄▽ ̄)o,看到了,谢谢~

ShanaMaid avatar Feb 22 '17 02:02 ShanaMaid

已改正

ShanaMaid avatar Feb 22 '17 02:02 ShanaMaid

Forget about the arguments object. The rest parameter is always a better option because: 这里说的不是...rest参数么? 收集额外参数为一个数组

Yoomin233 avatar Apr 28 '17 01:04 Yoomin233

@YueminHu 这的意思指用名称去定义参数而不是说不命名参数,直接用arguments内置对象去取参数

ShanaMaid avatar Apr 28 '17 02:04 ShanaMaid