资讯

While classes have been available in JavaScript since ES2015, they do not include private fields and methods. These capabilities were scrapped during the initial release due to disagreements ...
I've been using the .prototype method for the stuff I've been working on, primarily because that's 'just how it's done' for .NET AJAX client-side behaviors/extenders.