摘要: function Container(properties) { var objthis = this; for (var i in properties) { (function() { var t = properties[i]; objthis["get" + i] = function() { return t; }; objthis["set" + i] = function(val) { t = val; }; })(); }}var prop = { Name: "Jim", Age: 13};var con = new 阅读全文
posted @ 2013-12-06 18:08 Nunn 阅读(213) 评论(0) 推荐(0) 编辑