Dojo   发布时间:2022-04-21  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了DOJO的一个例子大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>58用户注册</title> <link rel="stylesheet" type="text/css" href="dojo/dijit/themes/tundra/tundra.css"/> <link rel="stylesheet" type="text/css" href="dojo/dojo/resources/dojo.css"/> <link rel="stylesheet" type="text/css" href="58.css"/> <script type="text/javascript" src="dojo/dojo/dojo.js" djConfig="parSEOnLoad : true"></script> <script type="text/javascript"> dojo.require("dojo.parser"); dojo.require("dijit.form.TextBox"); dojo.require("dijit.form.ValidationtextBox"); dojo.require("dijit.form.button"); dojo.require("dijit.layout.TabContainer"); dojo.require("dijit.layout.AccordionContainer");//设置AccordionContainer //dojo.require("dijit.layout.LinkPane"); //这里看是否需要使用LinkPane,不用的话取消这句 dojo.require("dijit.layout.ContentPane"); dojo.require("dijit.Dialog"); dojo.require("dijit.form.FilteringSELEct"); // dojo.require("dijit.layout.LayoutContainer"); </script> </head> <body class="tundra"> <div id="header"> <div id="headerinside"> <a> <img id="logo" src="gif/logo.gif"> </a> <div id="cityname"> 上海 </div> <div id="login_text"> <a href="#" >登录</a> </div> </div> <div class="content"> <div id="mainbody"> <dt> 用户名: </dt> <dd> <input type="text" maxlength=25 name="username" id="username" dojoType="dijit.form.ValidationtextBox" trim="true" required="true" invalidmessage="请输入用户名!" style="border:1px solid blue;margin-left:0px"/> </dd> <dt> 密码: </dt> <dd> <input type="password" maxlength=25 name="password" id="password" dojoType="dijit.form.ValidationtextBox" trim="true" required="true" invalidmessage="请输入密码!" style="border:1px solid blue;margin-left:0px"/> </dd> <dt> 确认密码: </dt> <dd> <input type="password" maxlength=25 name="confirmpassword" id="confirmpassword" dojoType="dijit.form.ValidationtextBox" trim="true" required="true" validator="return this.getValue() == dijit.byId('password').getValue()"invalidmessage="请确认两次输入密码一致!" style="border:1px solid blue;margin-left:0px"/> </dd> <dt> 电子邮件: </dt> <dd> <input type="text" maxlength=25 name="email" dojoType="dijit.form.ValidationtextBox" trim="true" style="border:1px solid blue"regExp="[a-z0-9._%+-]+@[a-z0-9-]+/.[a-z]{2,4}" required="true" invalidmessage="请输入正确的email"/> </dd> <dt> 生活圈: </dt> <dd> <SELEct name="foo" style=" width: 100px; border:1px solid blue;"> <option value="1" SELEcted="true">上海</option> <option value="2" >杭州</option> <option value="3">北京</option> </SELEct> <SELEct name="foo2" style="width: 100px; border:1px solid blue;"> <option value="4" SELEcted="true">上海</option> <option value="5" >杭州</option> <option value="6">北京</option> </SELEct> </dd> <dt> 验证码: </dt> <dd> <input type="text" maxlength=25 name="validateNo" id="validateNo" dojoType="dijit.form.TextBox" trim="true" propercase="true" style="border:1px solid blue;margin-left:0px;width:50px"/> </dd> <dt> <button dojoType="dijit.form.button" style="margin-left:150px">注册</button> </dt> </div> </div> </div> </body> </html>

大佬总结

以上是大佬教程为你收集整理的DOJO的一个例子全部内容,希望文章能够帮你解决DOJO的一个例子所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。