我有一个 Javascript 类,它具有三个文本变量:
myClasss = function(){
this.color = "yellow";
this.type = "car";
this.other = this.type + ", " + this.color;
}
我的班级有错误。我该如何填写this.Other
?
我有一个 Javascript 类,它具有三个文本变量:
myClasss = function(){
this.color = "yellow";
this.type = "car";
this.other = this.type + ", " + this.color;
}
我的班级有错误。我该如何填写this.Other
?