If you set foo on a subclass, it will set foo for the Base class and all other subclasses. class Sub extends Base {} console.log(Base.foo, Sub.
確定! 回上一頁