2011年8月12日
摘要: 首先来看一个标准的Spring配置文件 applicationContext.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/co 阅读全文
posted @ 2011-08-12 23:41 星^_^風 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1.下面列出了一些判读数值类型的正则表达式"^\\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\\d+$" //整数 "^\\d+(\\.\\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9] 阅读全文
posted @ 2011-08-12 14:57 星^_^風 阅读(480) 评论(0) 推荐(0) 编辑
摘要: function isValidateFile(obj){ var extend = obj.value.substring(obj.value.lastIndexOf(".")+1); if(extend==""){ }else{ if(!(extend=="xls"||extend=="doc")){ alert("请上传后缀名为xls或doc的文件!"); var nf = obj.cloneNode(true); nf.value=''; obj.parentNode.r 阅读全文
posted @ 2011-08-12 02:16 星^_^風 阅读(190) 评论(0) 推荐(0) 编辑