Window.Event.KeyCode=13

Window.Event.KeyCode=13是enter键处发windows事件,enter键的ASCII是13。

<input type="password" name="login_password" id="login_password" class="form-control" placeholder="请输入密码"
                onkeydown="javascript:if (event.keyCode==13) LoginByBeatEnter();" />
            <script type="text/javascript">
                function LoginByBeatEnter() { $(#login).click(); }
            </script>

 

Window.Event.KeyCode=13

上一篇:C# 将 Json 解析成 DateTable


下一篇:Android组件化开发实践(六):老项目实施组件化