您的位置:首页 > Web前端 > JavaScript

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

2015-12-31 10:31 686 查看
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();




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: