摘要: 1.Prototypevar Class = { create: function() { return function() { this.init.apply(this, arguments); } }}var A = Class.create();A.prototype = { init: function(msg) { this.msg = msg; }, fn: function() { alert(this.msg); }}var a = new A("myMsg");... 阅读全文
posted @ 2012-11-29 14:51 Onakaumi 阅读(204) 评论(0) 推荐(0)