我正在使用jqtree http://mbraak.github.io/jqTree/examples/drag_and_drop.html的拖放支持。
但这种效果暂时是如何保存更改的??
发布于 2013-05-16 15:35:20
得到了需要将移动事件绑定到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')});
}
);https://stackoverflow.com/questions/16523293
复制相似问题