checkbox 元素
<td class='center' style="width: 30px;"><input type="checkbox" class="chosen_one" name="checked_order" data_id="${var.order_id}" data_no="${var.order_no}"></td>
遍历所有的class为chosen_one并且已选中的checkbox,并且把其中的自定义参数放入数组
function payBatch(){
var boxs=$('.chosen_one:checked');console.log(boxs);
var ids=new Array();
for(var i=0;i<boxs.length;i++){
var orderInfo={};
orderInfo.id=boxs[i].attributes["data_id"].value;
orderInfo.no=boxs[i].attributes["data_no"].value;
ids.push(orderInfo);
}