我发现我的JavaScript代码允许通过字符串中没有@符号的电子邮件地址,这样可以吗?
In RFC 822 , p.27, an address is defined by
addr-spec = local-part "@" domain ; global address
So definitely, you need the "@" character.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.