(4).add(10) = 14
Number.valueOf()方法
Number.prototype.add = function(x){
return this.valueOf() + x
}
console.log((4).add(10))//14
Number.valueOf()方法
Number.prototype.add = function(x){
return this.valueOf() + x
}
console.log((4).add(10))//14