如何为上下排序运动添加动画效果。
您可以通过点击“向上”和“向下”文本链接来检查运动。
这是我的代码
$(document).ready(function(){
$('.move-up').click(function(){
if ($(this).prev())
$(this).parent().insertBefore($(this).parent().prev());
});
$('.move-down').click(function(){
if ($(this).next())
$(this).parent().insertAfter($(this).parent().next());
});
});
position: relative;
:: 真的让我抓狂! - JoeBrockhaus