javascript正则表达式emailvar reg = ^w+((-w+)|(.w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$ if (!reg.test(email)) { alert("2023-02-20JavaScript170