Skip to content

Instantly share code, notes, and snippets.

@callblueday
Last active December 20, 2015 17:49
Show Gist options
  • Save callblueday/6171718 to your computer and use it in GitHub Desktop.
Save callblueday/6171718 to your computer and use it in GitHub Desktop.
表单回车事件防止重复提交
document.onkeydown=function() {//捕捉回车
if (event.keyCode==13) {
checkFormValidate();
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment