Hanx

Member since
Hanx

Recent Docs Activity

View all activity
Page Date Comment

剩余参数


修正arguments转args

Rest parameters


function f(a, b) { var args = Array.prototype.slice.call(arguments, f.length); // … } if the f.length parameter was added, the args would be an empty array, not the arguments array