class类还不支持私有方法吗?

发布于 6 年前作者 ljiang7276 次浏览最后编辑 6 年前来自 ask

class Test{

constructor(){

Test.#private();//无法使用

}

static #private() {

console.log(1)

}

}

0 回复
暂无回复