日期:2014-05-16 浏览次数:20420 次
function login(){ var loginForm = document.forms[0]; loginForm.submit(); //window.location="main.html" } document.onkeydown = function(event){ var ev= (window.event)? window.event: event; if(ev.keyCode==13){ login(); } };
?