// Class 类 class Person { constructor(name){ this.name = name } getName(){ console.log(this.name,'--->获取到的name') } } let iu = new Person('iu') iu.getName() alert(typeof Person)