您现在的位置:首页 >> 前端 >> 内容

vue的createComponent实现继承(代码)

时间:2018/6/29 16:44:07 点击:

  核心提示:vue的createComponent实现继承(代码) cat.prototype = Object.create(animal.prototype);cat.prototype.constructo...

vue的createComponent实现继承(代码)

 cat.prototype = Object.create(animal.prototype); 
 cat.prototype.constructor = cat; //< ---- add this 
  

Tags:VU UE E的 的C 
作者:网络 来源:包磊磊的博客