类,构造方法
摘要:普通定义类的方法 class Info { public test: string; // 不特别说明,都是默认public private age: number; constructor() {} } 使用ts写法把属性放到构造函数作为参数使用 class Info { constructor(
阅读全文
posted @ 2020-07-02 21:47
posted @ 2020-07-02 21:47