# ES6类语法中,三种类成员方法有什么区别
class Demo {
method1() {
return 1;
}
method2 = () => {
return 2;
}
static method3 = {
return 3;
}
}
class Demo {
method1() {
return 1;
}
method2 = () => {
return 2;
}
static method3 = {
return 3;
}
}