Jquery Mobile开发以及Js对象动态绑定

动态创建对象并绑定属性: var instantiate = function (Type, args) { var Constructor = function () { }; Constructor.prototype = Type.prototype; var obj = new Constructor(); Type.apply(obj, args); return obj; }; ...
posted @ 2013-10-10 11:00  冰深  阅读(362)  评论(0编辑  收藏  举报