SOURCE

class Person {
	constructor(name) {
		this.name = name
	}
    getName(){
        console.log(this.name)
    }
    static getPerson(){
        console.log('person')
    }
}
class Student extends Person {
    constructor(name,grade) {
        super(name)
        this.grade = grade
    }
    getName(){
        super.getName()
        //super.getPerson() 报错
    }
    static getPerson(){
        super.getPerson()
    }
}

let student = new Student("张十三",12)
console.log(student)
student.getName()
Student.getPerson()
console 命令行工具 X clear

                    
>
console