在Swift 中,你可以使用 JSONEncoder 类将结构体转换为JSON 字符串。下面是一个例子: import Foundation struct Person: Codable { var name: String var age: Int } ...
確定! 回上一頁