Note three points:
1. There is no class variables in ES6 upgrade, you must first define a class by class to instantiate the object.
2. A total of properties and methods class which must be used by adding this.
3.constructor this point in the instance of an object, in the method of this points to the caller of this method.
ES6 classes and objects
Guess you like
Origin blog.csdn.net/aoolly/article/details/104897936
Recommended
Ranking