ES6 classes and objects

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.

Released three original articles · won praise 0 · Views 33

Guess you like

Origin blog.csdn.net/aoolly/article/details/104897936