2013-05-13 1 views

답변

3

있어 대답은 유 드래그 한 후,

$('#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')}); 
    } 
); 
+0

작동하지 않습니다 .. 여전히 반환 기본 트리 (업데이트되지 서버에 모든 정보를 보낼 수있는이 같은 http://mbraak.github.io/jqTree/#event-tree-move

을 jqtree하는 이동 이벤트를 바인드해야 드롭) –