js按enter键提交

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

猜你喜欢

转载自www.cnblogs.com/nancheng/p/9076974.html