Jstree : dblclick binding parameter data is undefined

后端 未结 2 1437
滥情空心
滥情空心 2021-01-20 03:09

I try to use good lib jstree but i have some strange problem with dblclick binding. Here is my code

$(\"#basic_html\").jstree({
    themes: {
           


        
2条回答
  •  暖寄归人
    2021-01-20 03:22

    $("#basic_html").bind("dblclick.jstree", function (event) {
        var node = $(event.target).closest("li");//that was the node you double click
    });
    

    that's the code you want.

提交回复
热议问题