asp.net页面获得回车键焦点的问题<body id="body" onKeyDown="HaddleEnter(document.getElementById('登录窗口里Login按钮的Id'));">function HaddleEnter(btn){ if(event.keyCode==13) { btn.focus(); }}