jquery实现回车登录

jquery实现回车登录

<script>
    //回车登录
    $(document).keydown(function (event) {
    if (event.keyCode == 13) {
    $("#loginbtn").click();
    }
    });
 </script>

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: