解析this.initialize.apply(this, arguments);

 this.initialize.apply(this, arguments);

看代码:我只能说这段代码很牛逼 

var Class = {
  create: function() {
    return function() {
      this.initialize.apply(this, arguments);
    }
  }
}
var fun=Class.Create();
fun.prototype={
        initialize:function (a,b,c){
         this.a=a;
         this.b=b;
         this.c=c;
     },
     show:function (){
         alert(this.a);
     }
}

 

posted @ 2016-02-27 19:32  咕-咚  阅读(170)  评论(0)    收藏  举报