0
프로그래밍과 initiliaze 실패, 나는 결과가 표시되지되고 둘 화면에 오류가 발생하지 않는단순한는 Dijit 위젯은 AMD 내가 도장의 새로운 AMD 기능을 사용하여 간단한 작업을 수행하기 위해 노력하고
AMD의 버전
<script type="text/javascript">
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.Tree");
dojo.ready(function(){
var store = new dojo.data.ItemFileReadStore({
url: "{{dataUrl}}/dijit/tests/_data/countries.json"
});
var treeModel = new dijit.tree.ForestStoreModel({
store: store,
query: {"type": "continent"},
rootId: "root",
rootLabel: "Continents",
childrenAttrs: ["children"]
});
new dijit.Tree({
model: treeModel
}, "treeOne");
});
</script>
: 나는 도장의 참조 설명서에서 언급 한 첫 번째 프로그램 예제 dijit.Tree를 다시하고 싶어
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<link rel="stylesheet" href="js/dojo/dijit/themes/claro/claro.css" />
<script src="js/dojo/dojo/dojo.js" data-dojo-config="async: true"></script>
<script language="JavaScript">
var param = new Array(null,["dojo/dom","dijit/tree","dojo/data/ItemFileReadStore","dijit/tree/ForestStoreModel","dojo/domReady!"]);
require(param[1],function(dom,dtree,ifrs,fsm)
{
var store = new ifrs({url: "js/countries.json"});
var treeModel = new fsm({store: store,query: {"type": "continent"},rootId: "root",rootLabel: "Continents",childrenAttrs: ["children"]});
new dtree({model:treeModel},"treeOne");
});
</script>
</head>
<body class="claro">
<div id="treeOne">
</div>
</body>
</html>
파이어 버그는 않는 실행하지 whow 나에게 시간 오류, 또는 뭔가 빠졌다고 말해주지 않습니다. 페이지가 비어 있습니다. 나는 무엇을 잘못 만들었 느냐?!