📅  最后修改于: 2022-03-11 14:58:36.307000             🧑  作者: Mango
class MyClass {
myTest() {
console.log('it works');
}
runMyTest() {
this.myTest();
}
}
var myClass = new MyClass();
myClass.runMyTest();