微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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>

原文地址:https://www.jb51.cc/dojo/291216.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐