循环获取选中的checkbox值
var RewardLevelIds = "";
$("input:checkbox:checked").each(function (i) {
var name = $(this).attr("name");
var id = name.substring(name.indexOf("_") + 1) //name后面为value值
if (i != 0) {
RewardLevelIds += "," + id;
} else {
RewardLevelIds += id;
}
})