版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/HSH205572/article/details/85248965
//点击-页面跳转触发事件 $('#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; });