有熟悉jstree的同志吗.?请问如何在jsTree中的Node节点加入链接的问题,百分送上
jstree通过前台js生成了树,但是没有链接,js代码如下
$(function() {
$("#demo0").bind('loaded.jstree', function(e, data) {
// invoked after jstree has loaded
$('#demo1>ul>li').addClass('topMenu');
}).jstree({
"themes": { "theme": "classic" },
"json_data": {
"ajax": {
"type": "POST",
"dataType": "json",
"contentType": "application/json;",
"url": "/Desktop/MenusFunc.aspx/GetAllNode",
"data": function(node) {
if (node == -1) {
return '{ "operation" : "get_children", "parentId" : ' + 1 + '}';
} else {
return '{ "operation" : "get_children", "parentId" : ' + $(node).attr("id") + '}';
}
},
"success": function(retval) {
return retval.d;
}
}
},
"plugins": ["themes", "json_data"]
});
});
后台生成的json格式如下,存在href的属性

但是在最终生成的节点代码没有链接的属性,
<a href="#"><ins class="jstree-icon"> </ins>Claim Summary</a>
想请教下这是为什么?
[解决办法]
前台页面把链接弹出来看看有没值!
[解决办法]
http://www.cnblogs.com/lost0/archive/2010/04/29/1723535.html
看看这个
[解决办法]
每明白你要干什么。是单击tree节点时,打开连接么?
[解决办法]
一般这种控件都是对节点绑定click事件来处理的,很少用超链接