刘建广

博客园 首页 联系 订阅 管理

01 2013 档案

摘要:if(window.addEventListener) { FixPrototypeForGecko(); } function FixPrototypeForGecko() { HTMLElement.prototype.__defineGetter__("runtimeStyle",element_prototype_get_runtimeStyle); window.constructor.prototype.__defineGetter__("event",window_prototype_get_event); Event.prototype. 阅读全文
posted @ 2013-01-31 10:28 刘建广 阅读(366) 评论(0) 推荐(0)

摘要:String str1 = "123456"; // 判断是否为数字 Pattern pattern = Pattern.compile("[0-9]*"); if(pattern.matcher(str1).matches()==false){ System.out.println("你输入的不是数字,请重新检查"); }else{ System.out.println("你输入的为数字"); }input 标签 判断 不能输入汉字<input name="textfield" id=& 阅读全文
posted @ 2013-01-28 11:06 刘建广 阅读(1145) 评论(0) 推荐(0)