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

posted on 2016-07-15 17:06  筱筱鹿丸  阅读(3622)  评论(0编辑  收藏  举报