# ES6类语法中,三种类成员方法有什么区别

class Demo {
    method1() {
        return 1;
    }
 
    method2 = () => {
        return 2;
    }
 
    static method3 = {
        return 3;
    }
}
Last Updated: 3/2/2020, 10:54:20 AM