重点:
- Strategy
- Date
- Data
- NonConformingFloat
- Container
- Keyed Container
- UnKeyed Container
- Single Value Container
- Optional
- encode(_:forKey:)
如果可选类型的值是nil,包含对应的Key, Value 为null。 - encodeIfPresent(_:forKey:)
如果可选类型的值是nil,则不包含对应的Key 和 Value。
- UserInfo
本文标题:[3] Codable (Swift 4)
本文链接:https://www.haomeiwen.com/subject/ocdosxtx.html
网友评论