//點擊-頁面跳轉觸發事件 $('#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; });
當前頁面攜帶大量參數原頁面跳轉到另外的頁面的問題
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.