JS继承 封装函数

来源:互联网 发布:奇葩淘宝收货人姓名 编辑:程序博客网 时间:2024/06/10 05:58
function extend(Child,Parent){  var f = {};  f.prototype = Parent.prototype;  Child.prototype = new f();  Child.prototype.Constructor = Child;  Child.uber = Parent.prototype;}

0 0