地址跳轉不顯示傳遞參數

 //window.location.href = "../indexSearchDetail?keywords=" + encodeURI(encodeURI(keywords)) + "&userAccount=" + encodeURI(encodeURI(userAccount));
                                     document.write("<form action=indexSearchDetail method=post name=form1 style='display:none'>");
                                     document.write("<input type=hidden name=keywords value='"+keywords+"'/>");
                                     document.write("<input type=hidden name=userAccount value='"+userAccount+"'/>");
                                       document.write("</form>");
                                       document.form1.submit();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章