MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

Function.arity

已废弃
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

概述

返回一个函数的形参数量.

描述

arity是一个古老的已经没有浏览器支持的属性,你应该使用Function.prototype.length属性来代替.

文档标签和贡献者

 此页面的贡献者: teoli, ziyunfei
 最后编辑者: teoli,