 
                        <form action="login.do?act=login" method="post">
用户帐号
  <input type=text name="userId" size="18" value="" >
 登录密码     
<input type="password" name="password" size="19" value=""/>     
 <input type=submit name="submit1" value="登陆" onclick="return check(this.form)"> 
</form>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
传入的是this
this是:
任何一个表单的元素的form 都是表单本身
this.form就是:
就是 HTMLElement 的对象,就是你点击的那个input 对象