简单易懂的
function isAvailableEmail(sEmail) { const reg = /^[\w\.]+@(\w+\.)+[0-9a-zA-Z]{2,4}$/ return reg.test(sEmail) }