"use strict"; (function () { // 类型别名 接口区别 // 接口:定义数据类型的规范 // 类实现接口 需要继承 // 类型约束 class List { constructor(name, age, address, sex, x) { this.name = name; this.age = age; this.address = address; this.sex = sex; this.x = x; } } let x = new List('图图', 3, '上海', '男', '12'); console.log(x); })();