Swift 中可以使用Foundation 框架中的JSONSerialization 类将数组转换为JSON 字符串。 代码示例: let array = [1, 2, 3, 4, 5] do { let data = try ...
確定! 回上一頁