透過Swift內建的Encoder/ Decoder 來儲存以及存取資料。 ... 將類別實現Codable 協定, 之後便可以透過 JSONEncoder / JSONDecoder 來儲存/讀取檔案。
確定! 回上一頁