$(function() {
$('#container')
.jstree({
'core' : {
'check_callback' : true,
'themes' : { "dots" : false,"stripes" : true },
'data' : [
<volist name="jsoninfo" id="vo">//thinkphp 的遍历标签
{ "id" : "<{$vo.did}>", "parent" : "<{$vo.parentid}>", "text" : "<{$vo.name}>","icon" : "glyphicon glyphicon-folder-close","state" : { "opened" : true } },
</volist>
]
},
<span style="white-space:pre"> </span>//右键菜单
'contextmenu':{
'select_node':!1,
'items':function(){
var a=$.jstree.defaults.contextmenu.items();
return a.create.label="添加子部门&