html head meta http-equiv="Content-Type" content="text/html; charset=gb2312" !--导入皮肤-- style type="text/css" @import "Libs/dojo/dijit/themes/tundra/tundra.css"; /style !--导入js文件-- script type="text/javascript" src="Libs/dojo
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <!--导入皮肤--> <style type="text/css"> @import "Libs/dojo/dijit/themes/tundra/tundra.css"; </style> <!--导入js文件--> <script type="text/javascript" src="Libs/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script> <script type="text/javascript"> <!-- //导入 树列表 的支持包 dojo.require("dijit.Tree"); //导入 将json格式数据格式化为tree认识的格式 的支持包 ,这也是 dojo 其他控件依赖的数据格式 dojo.require("dojo.data.ItemFileReadStore"); //--> </script> </head> <body class="tundra"> <div dojoType="dojo.data.ItemFileReadStore" url="data_1.txt" jsid="aaa"></div> <div dojoType="dijit.Tree" store="aaa" labelAttr="name" label="地理列表"></div> </body> </html>