jQuery插件TreeView默认展开第一层
后台代码添加children属性:
?
var branch = $("<ul/>").appendTo(current);if(!this.isroot){ //在后台添加isroot属性,根节点不需要执行下面的代码,否则重复点击不加载数据, if (this.hasChildren) { current.addClass("hasChildren"); createNode.call({text:"placeholder",id:"placeholder",children:[] }, branch); }}???
?