修改 toString 的原意 和给 Object 添加新方法
// 给 Object 对象添加新方法 showValue Object.prototype.showValue = function (){ // alert(this.valueOf()); return this.valueOf(); }; var str = "Hello World" ; var num = 23 ; var ss = str.showValue();
原创
2009-10-15 20:49:00 ·
407 阅读 ·
0 评论