类的传参以及super属性和super对象
类的继承//定义父类 class cars{ constructor(color,size,weight){ this.color=color this.size=size this.weight=weight } tool(){ console.log("避雨,代步工具") } ...
关于 类的super方法 的文章共有1条
阅读(982)评论(0)
类的继承//定义父类 class cars{ constructor(color,size,weight){ this.color=color this.size=size this.weight=weight } tool(){ console.log("避雨,代步工具") } ...