前台技术--通过javaScript提交表单

it2025-07-06  7

window.location=pp+"?username="+getCookie("username")+"&userid="+getCookie("userid"); 替换

document.write("<form action="+pp+" method=post name=formx1 style='display:none'>"); document.write("<input type=hidden name=username value='"+getCookie("username")+"' />"); document.write("<input type=hidden name=userid value='"+getCookie("userid")+"' />"); document.write("</form>"); document.formx1.submit();

转载于:https://www.cnblogs.com/bhlsheji/p/5090956.html

最新回复(0)