摘要: 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) 编辑