Jquery.nestable.js问题
凉城薄梦丶 2017-04-19 04:00:25 有没有熟悉的大神帮我看看, 用Jquery.nestable.js做的菜单树形结构。 逻辑上已经没有问题了,数据都正确,但是在添加父节点的展开/隐藏的button时, button的位置和父节点的位置不在同一行了,如图:
Jquery.nestable.js中对应的代码如下:
setParent: function(li)
{
if (li.children(this.options.listNodeName).length) {
li.prepend($(this.options.expandBtnHTML));
li.prepend($(this.options.collapseBtnHTML));
}
li.children('[data-action="expand"]').hide();
},
怎么调整把那个"+" Button 放在父节点的前面呀?