$("#gridrole").bootgrid({
pagination : 3,
selection : true,
multiSelect : true,
ajax : true,
post : function() {
},
url : "${ctx}/SysRoleController/getSysRoleList",
formatters : {
"id" : function(column, row) {
return ""+row.id+"";
}
},
});
$(".roleId").each(function() {
console.log(this);
if (this.checked) {
if (typeof ($(this).val()) != "undefined") {
roleIds += "," + $(this).val();
}
}
});
roleIds只拿到了当前页面checked的,如何拿到多个页面被选择的值