dojo新手遇到dojo加载问题

weidouble 发布于 2011/11/10 22:36
阅读 1K+
收藏 0

消除浏览器差异的css可以正常加载,但无法加载模块,觉得应该是base无法启用,源代码如下,希望大虾解答,感激不尽。

<!DOCTYPE html>

<html lang="zh-cn">

<head>

<meta charset="UTF-8" />

<title>Fun with Dijit!</title>

<link rel="stylesheet" type="text/css" href="dojo2/dijit/themes/tundra/tundra.css" />

<link rel="stylesheet" type="text/css" href="dojo2/dojo/resources/dojo.css" />

 

<style type="text/css">

h3{

margin:10px;

}

label,input{

display:block;

float:left;

margin-bottom:5px;

}

br{

clear:left;

}

label{

text-align:right;

width:70px;

padding-right:20px;

}

.grouping{

width=300px;

border:solid 1px rgb(230,230,230);

padding:5px;

margin:10px;

}

</style>

<script src="dojo2/dojo/dojo.js" type="text/javascript" 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.for.Button");

dojo.require("dijit.Tooltip");

</script>

 

</head>

<body class="tundra">

<h3>Sign-up for our great offers</h3>

<form id="registration_form">

<div class="grouping">

<label>First Name:</label>

<input type="text"

maxlength=25

name="first"

dojoType="dijit.form.TextBox"

trim="true"

propercase="true" /><br>

<label>Last Name:</label>

<input type="text"

maxlength=25

name="last" /><br>

<label>Your email</label>

<input type="text" 

maxlength=25

name="email"

dojoType="dijit.form.ValidationTextBox"

trim="true"

lowercase="true"

regExp="[a-z0-9._%+-]+@[a-z0-9-]+\.[a-z]{2,4}"

required="true"

invalidMessage="please enter a vaild e-mail address"/><br>

<button type="submit" dojoType="dijit.form.Button">Sign-up</button>

</div>

</form>

one <span id="one">fish</span>,two<span id="two">fish</span>.

<div dojoType="dijit.Tooltip" connectId="one,two">a limbless cold-blooded vertebrate</div>

</body>

</html>


加载中
0
aiby
aiby
加载dojo的代码中添加属性,async
返回顶部
顶部