ES6-04: Precautions when using classes
Others
2021-03-02 04:22:41
views: null
1: The class has no variable promotion and must be defined before the object can be instantiated.
2: The common attributes and methods in the class must be used with this.
3: This in the constructor points to the instance object, and the this in the method points to the caller of this method.
Origin blog.csdn.net/sinat_41696687/article/details/113836984