摘要: layui动态修改select的选中项:(在layUI下给select设置默认选项)例: 通过$("select[name='result']").val(11);设置select的选中项,但是select显示的当前选中项依然是默认选项,只有执行layui.form.render('select') 阅读全文
posted @ 2018-08-06 18:04 ヤBig、Bossづ 阅读(6750) 评论(0) 推荐(1) 编辑
摘要: import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * MD5加密的简单实现 * @author 【J.H】 * */ public class MD5Util { /** * 对字符串进行MD5加... 阅读全文
posted @ 2018-08-06 18:00 ヤBig、Bossづ 阅读(1976) 评论(0) 推荐(0) 编辑
摘要: import java.util.UUID; /** * 通过UUID随机生成36位、32位唯一识别码(唯一字符串) * @author 【J.H】 * */ public class Test { public static void main(String[] args) { int i = 0; while (i<10) { String a = UUID.ra... 阅读全文
posted @ 2018-08-06 17:55 ヤBig、Bossづ 阅读(6014) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; /** * 校验8位字符串是否为正确的日期格式 * @author 【J.H】 * 参考:https://blog.csdn.net/cc_yy_zh/article/details/73181010 */ public class Demo1 { ... 阅读全文
posted @ 2018-08-06 17:51 ヤBig、Bossづ 阅读(9461) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; /** * 18位身份证校验 * @author 【J.H】 * */ public class Test { // 身份证校验 public static boolean checkId(String id) { char[] ch = id.toCharArray(); boolean flag1 = verForm(... 阅读全文
posted @ 2018-08-06 17:46 ヤBig、Bossづ 阅读(2926) 评论(0) 推荐(0) 编辑