//点击-页面跳转触发事件
$('#imageAnaBtn').on('click', function () {
//其他代码
//......
document.write("<form action='/imageDiscern/initBatchBodyImageTu' method='post' name='toOtherPage' style='display:none'>");
document.write("<input type='hidden' name='labelBodyCodes' value=" + labelBodyCodes + ">");
document.write("<input type='hidden' name='propertyBodyStr' value=" + propertyBodyStr + ">");
document.write("<input type='hidden' name='labelsStr' value=" + labelsStr + ">");
document.write("<input type='hidden' name='labelsContentStr' value=" + labelsContentStr + ">");
document.write("<input type='hidden' name='showType' value=" + showType + ">");
document.write("</form>");
document.toOtherPage.submit();
// window.location.href 方式携带参数受限,当需要携带大量参数时考虑使用上述方式。
// window.location.href = '/imageDiscern/initBatchBodyImageTu?labelsStr=' + labelsStr + '&propertyBodyStr=' + propertyBodyStr + '&showType=' + showType;
});
js笔记 当前页面携带大量参数原页面跳转到另外的页面的问题
最新推荐文章于 2024-05-15 21:03:59 发布