摘要: MyEclipse 选中属性或方法后 相同的不变色了?myeclipse-->windows-->java-->Editor-->Mark Occurrences 把所有的框全点上对号,保存。 阅读全文
posted @ 2013-06-27 14:10 牛顿的苹果 阅读(171) 评论(0) 推荐(0) 编辑
摘要: JavaScription中URL中文乱码 阅读全文
posted @ 2013-05-06 17:49 牛顿的苹果 阅读(94) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList;import java.util.List;/** * * @author cheney * * @date Aug 31, 2012 */public class PageModel<T> { private int page = 1; // 当前页 public int totalPages = 0; // 总页数 private int pageRecorders;// 每页5条数据 private int totalRows = 0; // 总数据数 private int pageStartRow... 阅读全文
posted @ 2013-01-21 14:58 牛顿的苹果 阅读(30993) 评论(0) 推荐(1) 编辑
摘要: var Validator = { // 中文 isChinese : function(s) { var p = /^[\u4e00-\u9fa5]+$/; return this.test(s, p); }, // 英文 isEnglish : function(s) { var p = /^[A-Za-z]+$/; return this.test(s, p); }, // 邮箱 isEmail : function(s) { var p = "^[-!#$%&\'*+\... 阅读全文
posted @ 2013-01-16 10:52 牛顿的苹果 阅读(2210) 评论(2) 推荐(0) 编辑
摘要: 1. 需要传递的POJO对象./** * @author cheney * * @date Jan 7, 2013 */public class User { private String id; private String name; private String password; /** * @return the id */ public String getId() { return id; } /** * @param id * the id to set */... 阅读全文
posted @ 2013-01-16 09:39 牛顿的苹果 阅读(21534) 评论(1) 推荐(0) 编辑