我试图将功能添加到format function但有什么毛病我的代码:添加功能Intl.NumberFormat
Object.defineProperty(Intl.NumberFormat.prototype, "format", { value: function(){
//your logic here
let orig = Intl.NumberFormat.prototype
console.log(orig);// does not remember the original proto
}, configurable: true });
我缺少什么?
你是什么意思“原原”?你在期待什么? –