1,引用JqueryUI
$(function(){
$(".m_title").bind(‘mouseover‘,function(){
$(this).css("cursor","move")
});
var $orderlist = $("#orderlist");
var $list = $("#module_list");
$list.sortable({
opacity: 0.6,
revert: true,
cursor: ‘move‘,
handle: ‘.m_title‘,
update: function(){
//不用次都去请求
},
success: function(msg) {
//alert(msg);
}
});
}
});
})
2,最后拼json 传到后台(避免用tr td)
原文:http://www.cnblogs.com/viaiu/p/4844662.html