![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
Mr.xu
这个作者很懒,什么都没留下…
展开
-
java中替换html标签
小技巧,关键时刻关键作用原创 2016-10-27 09:29:35 · 1632 阅读 · 0 评论 -
JsonUtil 中的日期转换
public class JsonUtil{private static Gson gson = null;static{if(gson == null){gson = new Gson();gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();}}}原创 2017-07-31 18:24:24 · 872 阅读 · 0 评论 -
Form表单元素清空 | Element元素清空 | JQuery清空表单元素
function resetForm() { $(':input', '#page_form') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected');}原创 2018-01-04 17:37:31 · 2176 阅读 · 0 评论 -
java8 四大核心函数式接口Function、Consumer、Supplier、Predicate
Function<T, R> T:入参类型,R:出参类型调用方法:R apply(T t); 定义函数示例:Function<Integer, Integer> func = p -> p * 10; // 输出入参的10倍调用函数示例:func.apply(10); // 结果100Consumer<T>T:入参类型;没有出参调用方法:voi...原创 2018-04-27 11:00:02 · 22939 阅读 · 11 评论 -
获取随机数字
1.获取随机数字 /** * 获取固定长度的随机数字 * * @param n * @return */ public static String getRandom(int n) { if (n == 0) { return null; } Random ...原创 2019-04-15 16:13:57 · 1248 阅读 · 0 评论