摘要: 初始化一个类 经典案例 public class Singleton { private static Singleton instance = new Singleton(); public static Singleton getInstance() { return instance; } p 阅读全文
posted @ 2021-07-19 21:18 vaen 阅读(40) 评论(0) 推荐(0)
摘要: // json字符串 "Bottom": [ { "ID": 1425, "name": "name1" }, { "ID": 1426, "name": "name2" } ]}` // 核心方法利用reflect.Typeof(mm).Kind() // 利用反射先遍历slice的值,再进行类型 阅读全文
posted @ 2021-07-19 13:59 vaen 阅读(1962) 评论(0) 推荐(0)