摘要:
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 阅读全文