var arrData2 = new Array();
$("input[name=Payid]").each(
function () {
var Couponnos = $("input[name=Couponno_" + $(this).val() + "]").val();
if (Couponnos.indexOf("-") > -1) {
var Couponno = Couponnos.split("-");
for (var i = Couponno[0]; i <= Couponno[1]; i++) {
arrData2.push(i);
}
}
else if (Couponnos != "") {
arrData2.push($("input[name=Couponno_" + $(this).val() + "]").val());
}
}
);
arrData2 中的第一个数据是string 类型 第2个是 number类型