您当前的位置: 首页 > 

暂无认证

  • 0浏览

    0关注

    92582博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

原型实例继承和原型直接继承的区别?

发布时间:2021-04-16 17:53:50 ,浏览量:0

目录
  • 1、原型实例继承
  • 2、原型直接继承
1、原型实例继承
student.prototype = new parentClass(); student.prototype.construct = student; 
2、原型直接继承
student.prototype = parentClass.prototype; student.prototype.constructor = student; 
关注
打赏
1653961664
查看更多评论
立即登录/注册

微信扫码登录

0.3680s