js按enter键提交

function login() {
if (event.keyCode == 13) {
$("#login").click();
}
}

原文地址:https://www.cnblogs.com/nancheng/p/9076974.html