<form action="**.php" method="post">
<input type="text" name="username"/>
<input type="password" name="pwd"/>
<input type="submit" onclick="if(event.keyCode==13){gosubmit();}">//Enter 的键值是13
</form>
<form action="**.php" method="post">
<input type="text" name="username"/>
<input type="password" name="pwd"/>
<input type="submit" onclick="if(event.keyCode==13){gosubmit();}">//Enter 的键值是13
</form>