删除表格行之后 动态改变序号

$(document).on('click','.edits',function(){
            $(this).parent().parent().remove();//删除当前行
            $(".index").each(function(x){    //重新排序
                $(this).val(x+1);
            })
         });

Guess you like

Origin blog.csdn.net/c15162/article/details/109513778