- 注册时间
- 2014-9-4
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 118
- 精华
- 0
- 帖子
- 22
|
关于miniui tree的问题,首次加载的一棵树
<ul id="tree1" class="mini-tree"
url="<%=request.getContextPath()%>/commonQueryAction.do?method=treeData"
style="width:250px;padding:5px;"
showTreeIcon="true" textField="text" idField="id"
>
, 完了我重新加载另一棵树
var tree = tree = mini.get("tree1");
tree.setUrl('./tree.txt'); 导致第二棵树的expanded属性失效,全部默认展开了。
下面是第二棵树的 数据格式。
[
{id: "base", text: "Base",expanded:true,
children: [
{id: "ajax", text: "Ajax"}
]
},
{id: "forms", text: "Forms", expanded:false,
children: [
{id: "button", text: "Button"}]
}
}]
|
|