jstree自定义二级右键菜单 电脑版发表于:2020/7/17 21:42 代码如下:语法其实就是submenu ``` addfile: { "label": "新建", submenu: { addHtmlEditer: { "label": "新建1", "action": function (data) { var inst = jQuery.jstree.reference(data.reference); obj = inst.get_node(data.reference); layer.open({ type: 2, title: '新增[' + obj.text + ']的子组', shadeClose: true, area: ['380px', '300px'], content: '/admin/Group/add/id/' + obj.id //iframe的url }); } }, addMarkdown: { "label": "新建2", "action": function (data) { } } } } ```