This article introduces a JavaScript function to verify email addresses, which is quite reliable.
JavaScript function to verify email address, the source code is as follows:
function checkEmail(text) { if( text.match(/qq\.com$/) ) { return -1; } if( ! text.match(/^\w+([._-]\w+)*@(\w+\.)+\w+$/) ) { return false; } return true; }
About the JavaScript email verification function, this article will introduce you so much. I hope it will be helpful to you, thank you!