在java中,我们是这样使用的: Type type = new TypeToken() { }.getType();然后使用Gson去解析对象: gson.fromJson(json, type);在Kotlin中: 第一种方式:val turnsType = ...
確定! 回上一頁