ES6的面向对象写法
这是之前的写法function Previous (name,age){ this.name = name; this.age = age; } let Bin = new Previous('Bin',21);这是es6的写法class Person { constructor(name,age){ this.name = name; ...