es6从同一个类中调用类方法

我想在我的类中调用一个类方法,如下面的例子所示。

import blah from './blaha'; export default class myclass{ constructor(con) { this.config = con; } async meth1(paramA) { //do_stuff... } meth2(paramB) { //attempt to call meth1() } } 

我想从使用es6类样式的不同方法中调用一个方法。

使用this

 import blah from './blaha'; export default class myclass{ constructor(con) { this.config = con; } async meth1(paramA) { //do_stuff... } meth2(paramB) { this.meth1() } }