var ids = $('input:checkbox[name="key"]:checked');var data = '';for (var i = 0; i < ids.length; i ++) { //利用三元运算符去点 data += ids[i].value + (i == ids.length - 1 ? '':',');}
2021-01-11
2021-04-28
2021-08-15
2021-06-03
评论