摘要: 类属性只能读不能写的两种方式 class Person { constructor(public name:string){} } const person = new Person('zina'); person.name = 'hello'; // 这里可以修改 name console.log 阅读全文
posted @ 2020-06-05 06:53 wzndkj 阅读(560) 评论(0) 推荐(0) 编辑