Gson 可以結合泛型使用,但用到泛型時,需指定 type ,如 new TypeToken<List<String>>(){}.getType() ; TypeToken 的構造方法是protected的,所有這麼 ...
確定! 回上一頁