摘要:
function Person(name) { this.name = name; this.flag = 0; Object.defineProperty(this, 'name', { get: function() { return name;}, set: function(newName) { if (this.flag) { n... 阅读全文
摘要:
function Person(name) { this.name = name; Object.defineProperty(this, 'name', { get: function() { return name;}, set: function(newName) { if (name) { return;} return name = n... 阅读全文