再談 attribute

@slideshare     原生: attribute 的訪問控制從ecmascript3.1開始引入,在ecma5正式成爲標準,目前有ie8與chrome支持,使用方式:   foo={}; Object.defineProperty(foo, "test", { getter: function() { return "foo" } , setter: function(v){this
相關文章
相關標籤/搜索