请教关于jstree展开节点加载子节点问题
我用的是jstree3.0版本
$(document).ready(function () {
$("#treeMenu").jstree({
"core": {
"check_callback": true,
"data": {
"url": "../ajax/s_module.ashx?flag=1",
"data": function (n) {
return { id: n.attr ? n.attr("id") : 0 };
}
},
"themes": {
"theme": "classic",
"dot": true,
"icons": true
}
}
})
.bind("open_node.jstree", function (node, data) {
//加载子节点
});
});
树都能显示,只是想在展开子节点时异步加载子节点,但试了总不行,会的朋友请教下,感谢!