摘要: var book={ _year:2004, edition:1};Object.defineProperty(book,"year",{ get:function(){ return this._year; }, set:function(newValue){ if(newValue>2004) 阅读全文
posted @ 2016-12-26 15:15 我啊我 阅读(158) 评论(0) 推荐(0) 编辑