摘要: package com.cgcyiliao.server.util; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5Util { // 全局数组 p 阅读全文
posted @ 2016-09-21 11:20 26个字符的地狱 阅读(231) 评论(0) 推荐(0)
摘要: 1 /** 2 * 对字符串做预处理 3 * \s 匹配空格、制表符、换页符等空白字符 4 */ 5 public static String pretreatString(String str) { 6 return str.replaceAll("\\s*", ""); 7 } 阅读全文
posted @ 2016-09-21 11:17 26个字符的地狱 阅读(301) 评论(0) 推荐(0)
摘要: 1 /** 2 * 判断对象是否为空 3 */ 4 public static boolean isEmpty(Object obj) { 5 if (obj == null) 6 return true; 7 8 if (obj instanceof String) 9 ... 阅读全文
posted @ 2016-09-21 11:12 26个字符的地狱 阅读(3526) 评论(0) 推荐(0)
摘要: /** * 判断集合是否为空 * * @param list * 集合 */ public static boolean isEmpty(List list) { if (list != null && list.size() > 0) { return false; ... 阅读全文
posted @ 2016-09-21 11:09 26个字符的地狱 阅读(4315) 评论(0) 推荐(0)
摘要: 1. 如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?$("#test").val() $("input[name='test']").val() $("input[type='text']").val() $("input[ty 阅读全文
posted @ 2016-09-21 10:38 26个字符的地狱 阅读(129) 评论(0) 推荐(0)
摘要: Eclipse里,debug时用到的快捷键: F5:step into:单步执行程序,遇到方法时进入 F6:step over:单步执行程序,遇到方法时跳过 F7:step return:单步执行程序,从当前方法跳出 F8: resume :重新执行debug,一直运行知道遇到breakpoint。 阅读全文
posted @ 2016-09-21 10:25 26个字符的地狱 阅读(219) 评论(0) 推荐(0)