摘要: function Person(name) { this.name = name; this.flag = 0; Object.defineProperty(this, 'name', { get: function() { return name;}, set: function(newName) { if (this.flag) { n... 阅读全文
posted @ 2017-07-03 20:02 ax=null 阅读(114) 评论(0) 推荐(0) 编辑
摘要: function Person(name) { this.name = name; Object.defineProperty(this, 'name', { get: function() { return name;}, set: function(newName) { if (name) { return;} return name = n... 阅读全文
posted @ 2017-07-03 19:24 ax=null 阅读(128) 评论(0) 推荐(0) 编辑