Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个很好的 jstree 可以加载数据等等——现在我需要让它在你点击一个节点时做一些事情。
我已经成功处理了 node_select 事件,但是有没有一种简单的方法可以使节点呈现为链接(如在 html <a> 标签中)?
编辑: 看起来 jstree 节点已经是链接 - 它使用 <a> 标记以及 <li>
.delegate("a","dblclick", function(e) { $.ajax({ type: "POST", url: "http://www.google.de", data: "id="+$(this).parent().get(0).id, success: function(data){ $("#ajaxcontent").html(data); } }); })
jstree 节点已经是链接 - 它使用<a>标签以及<li>
<a>
<li>