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);
         })

posted @ 2013-03-30 11:28  丫的  阅读(331)  评论(1编辑  收藏  举报