<script type="text/javascript">
function submitByEnter()
{
if(event.keyCode == 13)
{
login();
document.getElementByIdx_x("password").value="";
}
}
</script>
<form class="mainmenu" οnkeydοwn="submitByEnter();">
转载于:https://www.cnblogs.com/start-fxw/p/4561749.html