我正在使用jqtree的拖放支持 http://mbraak.github.io/jqTree/examples/drag_and_drop.html
但这种影响暂时是如何保存更改的?
答案 0 :(得分:3)
得到答案需要将move事件绑定到jqtree http://mbraak.github.io/jqTree/#event-tree-move
像这样你可以将所有信息发送到服务器$('#tree1').bind(
'tree.move',
function(event)
{
event.preventDefault();
// do the move first, and _then_ POST back.
event.move_info.do_move();
$.post('your_url', {tree: $(this).tree('toJson')});
}
);