标签: javascript ecmascript-6
class foo { barMethod { // do something for the instance } static bamMethod { // do something } // e.g. class batClass { // the constructor and other stuff for batClass } } new foo.batClass();
答案 0 :(得分:0)
[No。](Nested ES6 classes?)。阅读这篇文章。你只能像评论中提到的@floribon一样。