摘要: class TypeScript全面支持ES2015中引入的class关键字,并为其添加了类型注解和其他语法(比如,可见修饰符等) class Person { name: string = 'a' } const p = new Person() console.log(p); // Person 阅读全文
posted @ 2024-06-27 14:03 等风来灬 阅读(5) 评论(0) 推荐(0) 编辑