跳到主要内容

如何用 JS 实现继承

继承

  • class 继续

  • prototype 继承,不推荐