【发布时间】:2012-04-25 23:35:52
【问题描述】:
我使用 phonegap 和 dojo mobile html5 开发了一个应该在 android 设备上运行的表单,因此页面运行没有问题,但是当我在移动设备上测试页面时遇到了一些错误。
<div id="settings" dojoType="dojox.mobile.View" selected="true">
<!-- a sample heading -->
<h1 dojoType="dojox.mobile.Heading">Authentification</h1>
<form id="loginForm">
<div class="field-title">Login</div>
<div class="fieldset">
<div class="field-row">
<span>Username*</span><input dojoType="dojox.mobile.app.TextBox" />
</div>
<div class="field-row">
<span>Password*</span> <input type=password name="pass"
dojoType="dojox.mobile.app.TextBox"> </input>
</div>
<a class="link" href="#">New account</a><a class="link"href="#">Forgot your password?</a>
<div style="text-align: center;">
<button dojotype="dojox.mobile.Button" class="mblButton greyBtn baseBtn normalBtn">Connect</button>
<button id="resetBtn" type=reset dojotype="dojox.mobile.Button"
class="mblButton greyBtn baseBtn normalBtn">Reset</button>
</div>
</form>
</div>
04-26 00:11:28.909: D/PhoneGapLog(3029): 加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后一次尝试 '../dojox/mobile/app/_Widget.js'
04-26 00:11:28.909: D/PhoneGapLog(3029): : Line -2167 : 加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后尝试'../dojox/mobile/app/_Widget.js
04-26 00:11:28.909:E/Web 控制台(3029):加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后一次尝试 '../dojox/mobile/app/_Widget.js' 在:-2167
【问题讨论】: