1000['toString']给你函数对象Number.prototype.toString,在JS中,函数对象有一个属性length,它返回函数所用的参数个数.在这种情况下是1因为Number.prototype.toString收到基数参数.
alert(Number.prototype.toString.length) // 1
Run Code Online (Sandbox Code Playgroud)
参考文献:
| 归档时间: |
|
| 查看次数: |
284 次 |
| 最近记录: |