也就是说,在类的构造函数中初始化一个readonly属性时,如果尝试对其进行赋值操作,同样会导致编译错误。 class Person { readonly name: string; constructor(name: ...
確定! 回上一頁