如何设置nodes中href的url?
有谁知道如何设置 jstree 中 links 节点的 href url?
今天是 href="#"
。
Does anyone know how can I set the href url of the links node in the jstree?
today it's href="#"
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须进一步澄清您希望对 jstree 应用什么样的更改。
jstree 中的锚点不是真正的锚点,它们的共同目的是更改网页地址,而仅仅是 javascript“单击”事件的诱饵,以便可以执行各种树操作。
You must clarify further, what kind of change you wish to apply to the jstree.
The anchors in the jstree are not true anchors who serve the common purpose of changing a web page address, but are merely baits for javascript 'click' event so that various tree action could be executed.
很简单,只需将 data key 更改为对象即可:
simple, just change the data key to an object: