JS基础
浅析Js中${}字符串拼接 | 浅析Js中${}字符串拼接 |
js子类调用父类同名方法 |
js子类调用父类同名方法
class Father {
log (abc:any){
cclog.d("father", abc);
}
}
class Son extends Father {
log (abc:any){
Father.prototype.log.apply(this, arguments);
cclog.d("son", abc);
}
}
/*
father 123
son 123
*/