jQuery MiniUI
标题:
mini-treeselect
[打印本页]
作者:
哎呀
时间:
2019-5-25 12:01:24
标题:
mini-treeselect
mini-treeselect 能否默认选择一条数据?选择2级节点的一个
作者:
felt
时间:
2019-5-27 09:25:09
这只能js获取了再动态设置了。
var tree = mini.get("select1");
var nodes = tree.tree.getList();
for (var i = 0, l = nodes.length; i < l; i++) {
var node = nodes[i];
if (tree.tree.getLevel(node) == 1) {
tree.setValue(node[tree.valueField]);
break;
}
}
复制代码
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2