- 博客(2)
- 收藏
- 关注
翻译 java 对象转map的方法
小计一下1、反射转换public static Map<String, Object> toMap(Object obj) { Map<String, Object> map = new HashMap<String, Object>(); // 获取对象对应类的所有属性域 Field[] fields = obj.getClass().getDeclar...
2018-06-08 13:36:26
1171
翻译 js 时间格式化
记一下,以防忘掉Date.prototype.format = function (format) { var args = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes(), ...
2018-06-08 12:49:01
158
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人