JSTree使用随笔
$("#leftMenuList").jstree({
"core": { "initially_open": ["root_3"] },
"themes": {
"theme": "classic",
"dots": true,
"icons": true
},
"html_data": {
"ajax": {
"url": "AjaxMenu.ashx?pAction=getMenuList"
}
},
"plugins": ["themes", "html_data", "ui", "crrm", "hotkeys"]
})
.bind("select_node.jstree", function (e, data) {
// `data.rslt.obj` is the jquery extended node that was clicked
var id = $(data.rslt.obj).attr("rowid");
$("#Rowid").val(id);
ShowDetail(id);
})
技术高一尺
客户高一丈