我使用 Worklight 5.06 和 Dojo 1.8。Eclipse 崩溃后,它会在浏览器的控制台上显示以下错误:
- 无法解析构造函数:'dojox.mobile.RoundRectCategory'
- 未找到左侧列表
- this.leftList 未定义
如您在此屏幕截图中所见:
dojo.connect(window, "onload", function() {
dojo.require("dijit.form.NumberSpinner");
});
function dojoInit() {
require(["dojo", "dojo/request/script", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/deviceTheme",
"dojox/mobile/ScrollableView",
"dojox/mobile/ScreenSizeAware",
"dojox/mobile/FixedSplitter",
"dojox/mobile/Container",
"dojox/mobile/EdgeToEdgeList",
"dojox/mobile/RoundRect", n ",
"
dojox / mobile / Button ",
"
dojox / mobile / GridLayout ",
"
dojox / mobile / Pane ",
"
dojox / mobile / ScrollablePane ",
"
dijit / form / DataList ",
],);
@import url("http://ajax.googleapis.com/ajax/libs/dojo/1.8/dojo/resources/dojo.css");
@import url("http://ajax.googleapis.com/ajax/libs/dojo/1.8/dijit/themes/claro/claro.css");
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js' data-dojo-config="parseOnLoad:true, async:'legacyAsync'"></script>
<div id="xx" data-dojo-type="dojox.mobile.ScrollableView">
<h2 data-dojo-type="dojox.mobile.RoundRectCategory" style="text-align: center;">Filtro</h2>
<div data-dojo-type="dojox.mobile.RoundRect">
<div data-dojo-type="dojox.mobile.Pane" style="text-align: center;">
<input id="lll" type="text" onblur="ordinaItemCataloghi('cc')">
<input id="ddd" type="text" placeholder="Descrizione catalogo" onblur="ordinaItemCataloghi('dd')>
<input id=" linea_prodotto " type="text " placeholder="Linea prodotto "
onblur="ordinaItemCataloghi( 'll') ">
</div>
</div>
<h2 data-dojo-type=" dojox.mobile.RoundRectCategory "
style="text-align: center; ">Elenco
cataloghi
</h2>
<ul id="ulElencoCataloghi "></ul>
</div>
在日食崩溃之前一切都正常了。可能发生了什么?