form表单action带参数传递function submit(){ var u = document.forms[0].elements["user"].value; document.forms[0].action = "admin.jsp?u="+u; document.forms[0].submit();}