摘要: class ReadOnly { private(set) var name: String init(_ name: String) { self.name = name } } let obj = ReadOnly.init("hah") //以下代码会报错 obj.name = "hahh" 阅读全文
posted @ 2019-07-17 21:35 FlutterStudy 阅读(4058) 评论(0) 推荐(0) 编辑