function Pay() {
var cList = "";
var selected = $(":checkbox[name!='select-all']:checked");
$(selected).each(function () {
if (cList.length > 0) cList += ",";
cList = cList + $(this).attr("id");
});
location.href = "/Order/Pay?pid=" + cList;
}
本页面转向到/Order/Pay中,并向其传递选中的行ID拼接字符串,上面这方法是可以,但是地址栏会显示出ID的内容,有没有更好的办法实现我想要达到的目的?
谢谢。