JavaScript获得按键事件 <script language="javascript" for="document" event="onkeydown"><!--//识别回车事件if(event.keyCode==13){ // TODO 获得回车操作 }--></script>