JavaScript语言参考 prototype 属性 (Number)
为number的类返回原型的引用。 语法 number.prototype 备注 number参数是数字的名称。 Use the prototype property to provide a base set of functionality to a class of objects. New instances of an object "inherit" the behavior of the prototype assigned to that object. For example, to add a method to the Number object that returns the number of (integer) digits, declare the function, add it to Number.prototype, and then use it.