自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-07-10 8e8b310e5b699d6b32d9b01af9b94e7859100531
src/main/webapp/views/pdaCe/login.html
@@ -26,7 +26,7 @@
            <input type="password" id="password" value="xltys1995">
        </div>
        <div>
            <button onclick="login()">登录</button>
            <button id="login" onclick="login()">登录</button>
        </div>
    </div>
@@ -34,13 +34,6 @@
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../static/js/tools/md5.js"></script>
<script type="text/javascript">
    document.onkeydown = function(e) {
        //捕捉回车事件
        var ev = (typeof event!= 'undefined') ? window.event : e;
        if(ev.keyCode === 13 && document.activeElement.id === "key") {
            login()
        }
    }
    document.onkeyup = function (e) {
        if (window.event)//如果window.event对象存在,就以此事件对象为准
            e = window.event;