jQeury 批量删除
生活随笔
收集整理的這篇文章主要介紹了
jQeury 批量删除
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
/*批量刪除*/
function datadel(){var ids = new Array();$("input[name='batch']:checked").each(function(){ids.push($(this).val());});if(ids.length == 0){layer.alert('請選擇要刪除的數據!');}else{ids = ids.join(',');layer.confirm('確認要刪除嗎?',function(index){$.ajax({type: 'POST',url: 'batchDel',data: {ids: ids},dataType: 'json',success: function(data){$("input[name='batch']:checked").each(function(){$(this).parents("tr").remove();});layer.msg(data.info, {icon:1,time:1000});},error:function(data) {console.log(data.msg);},}); });}
}
?
轉載于:https://www.cnblogs.com/mz0104/p/9264176.html
總結
以上是生活随笔為你收集整理的jQeury 批量删除的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: rsync数据备份
- 下一篇: Hadoop环境 IDE配置(在ecl