js前台验证框架
js前台验证框架
(2009-02-06 16:40:32)
转载
标签:
杂谈
<title>表单验证类 Validator v1.05</title>
<style>
body,td{font:normal 12px Verdana;color:#333333}
input,textarea,select,td{font:normal 12px Verdana;color:#333333;border:1px solid #999999;background:#ffffff}
table{border-collapse:collapse;}
td{padding:3px}
input{height:20;}
textarea{width:80%;height:50px;overflow:auto;}
form{display:inline}
</style>
<script language="javascript" >
Validator = {
Require : /.+/,
Email : /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
Phone : /^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,
Mobile : /^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/,
Url : /^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,
IdCard : "this.IsIdCard(value)",
Currency : /^\d+(\.\d+)?$/,
Number : /^\d+$/,
Zip : /^[1-9]\d{5}$/,
QQ : /^[1-9]\d{4,8}$/,
Integer : /^[-\+]?\d+$/,
Double : /^[-\+]?\d+(\.\d+)?$/,
English : /^[A-Za-z]+$/,
Chinese : /^[\u0391-\uFFE5]+$/,
Username : /^[a-z]\w{3,}$/i,
UnSafe : /^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,
IsSafe : function(str){return !this.UnSafe.test(str);},
SafeString : "this.IsSafe(value)",
Filter : "this.DoFilter(value, getAttribute('accept'))",
Limit : "this.limit(value.length,getAttribute('min'), getAttribute('max'))",
LimitB : "this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",
Date : "this.IsDate(value, getAttribute('min'), getAttribute('format'))",
Repeat : "value == document.getElementsByName(getAttribute('to'))[0].value",
Range : "getAttribute('min') < (value|0) && (value|0) < getAttribute('max')",
Compare : "this.compare(value,getAttribute('operator'),getAttribute('to'))",
Custom : "this.Exec(value, getAttribute('regexp'))",
Group : "this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",
验证框架 最好用的验证框架 Html 代码 ... js前台验证框架 8页 2下载券 一个不错的js验证框架 暂无评价 20页 1下载券 通用JS验证框架(ChkInpu... 7页 ...
一个不错的js验证框架_计算机软件及应用_IT/计算机_专业资料。js标准框架设计表单验证类 Validator v1.05 body,td{font:normal 12px Verdana;color:#333333} ...
通用JS验证框架(ChkInputs)概述_计算机软件及应用_IT/计算机_专业资料。通用JS...当页面的控件元素都设置好时,在前台页面中只需加入少量代码即可,如下所示,先在...
16页 免费 js前台验证框架 8页 5财富值 JS_模块概述_FIAR 36页 1财富值 js框架的概述 暂无评价 7页 2财富值喜欢此文档的还喜欢 JS前台调试概述 30页 ...
jsvalidation验证框架的使用_IT/计算机_专业资料。jsvalidation验证框架的使用1.配置环境: (1)首先将 jsvalidation-framework.js 和 validation-config.xml 复制到...
引入JQuery 框架宣讲活动总结孙权 参加了老大组织的这次引入前台 JS 框架的宣讲...数据提交校验等复杂的流程操作, 可以考虑引入 jQuery,在控制流程和逻辑判断上,...
关于部门引入ExtJS前台框架的评估报告_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 关于部门引入ExtJS前台框架的评估报告_计算机软件及...
JavaScript Form Validation 验证框架使用手册译刘海刚 使用客户端 JS 效验用户在网页表单的输入是一种很不错的方式,但当表单中的字段繁 多时,这种效验工作也随之...
jquery.validate_Validation_.js 验证框架_帮助_手册_文档 Html 代码 </scri pt> $(document).ready(function(){ $("#textForm").validate(); ...
jquery.validate Validation .js验证框架 帮助 手册 文档_IT/计算机_专业资料。jquery.validate Validation .js验证框架 帮助 手册 文档...
热门文档