關於全選 反選,批量刪除

2021-09-05 01:35:29 字數 567 閱讀 7557

//全選/反選

function checkopposite()  else 

} }

function deletesome() );

// console.log(id.substring(1));

//獲取id的第二種方式

//map():將jquery集合轉換成其他陣列

//get():將其他陣列轉換成js陣列

//join():將陣列中的元素拼成字串,如果不傳參,預設用逗號拼接,如果傳參,以引數的格式拼接

var id = $("[name='checkone']:checked").map(function() ).get().join();

console.log(id);

if (id == "") else , function(result) else

}, "json");

}} }

body內容

全選/反選

編號 $

批量刪除,全選,返選

查詢 排序 請選擇 名稱正序 名稱倒序 正序 降序 商品名稱 商品價錢 商品產地 序號id 商品名稱 價錢產地 操作 商品名稱 商品價錢 商品產地 初始化資料 scope.goods 全選 scope.qx function 全不選 scope.qbx function 反選 scope.fx fu...

jq實現批量全選與反選

doctype html html lang en head meta charset utf 8 title document title head body input type button value 刪除 table border 1 thead tr th input type chec...

全選和反選

一 xml布局 xmlns tools android layout width match parent android layout height match parent android paddingbottom dimen activity vertical margin android ...