我不明白对象的 Writable 和 Configurable 属性。比如在Object.prototype的MDN中,有一张表,可以清楚的看到Object.prototype的Configurable, Writable and Enumerable Property Attributes被锁定了。
但是,我可以编写和扩展 Object.prototype,例如使用以下代码:
// Example 1
Object.prototype.testing=999;
console.log(Object.testing); // 999
// Example 2
var o = {};
console.log(o.testing); // 999
Run Code Online (Sandbox Code Playgroud)