大佬教程收集整理的这篇文章主要介绍了dojo之ValidationTextbox,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
@import "../js/dojo/resources/dojo.css";
@import "../js/dijit/themes/tundra/tundra.css";
border:solid 2px #FFDF00;
}
</style>
<script type="text/javascript"
djConfig="parseOnLoad: true,isDebug: true"
src="../js/dojo/dojo.js"></script>
<script>
</script>
</head>
<body class="tundra">
<form name="form1">
promptmessage="请输入信息"
invalidmessage="输入的信息有误"
required="true"
trim="true"
propercase="true"
><br />
一些属性:<br />
required="true" //必须填写<br />
trim="true" //将前后的空格自动删除<br />
propercase="true" //单词首字母大写<br />
uppercase="true" //大写字母形式<br />
lowercase="true" //小写字母形式<br />
<hr />
验证文本组件可以支持正则表达式验证,比如:<br />
不包含空格验证:<input id="vt1" type="text" name="phone"value="someTestString"
regExp="[/w]+"
required="true"
trim="true"
invalidmessage="输入中不允许包含空格"><br />
email地址验证:<input id="vt2" type="text" name="phone"value="/amushen2005@hotmail.com"
required="true"
trim="true"
invalidmessage="输入合法的email地址"><br />
只允许输入数字:
<input id="vt1" type="text" name="phone"value="/123.34"
required="true"
trim="true"
invalidmessage="只允许输入数字"><br />
</form>
</body>
</html>
|
以上是大佬教程为你收集整理的dojo之ValidationTextbox全部内容,希望文章能够帮你解决dojo之ValidationTextbox所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。