我有 jsTree 和一个按钮。 jsTree有select_node函数
.bind("select_node.jstree", function (event, data) {
// some code
})
是否可以在单击按钮时触发 select_node 事件?
最佳答案
在 jQuery 中使用您绑定(bind)
的任何东西的方式是通过trigger
(或triggerHandler
)完成的。
.trigger('select_node.jstree', data)
关于javascript - jsTree 触发 select_node 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8942352/