Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到的我的 javascript 代码允许通过字符串中没有 @ 符号的电子邮件地址,是这样还是那样糟糕?
在RFC 822 , p.27 中,地址定义为
addr-spec = local-part "@" domain ; global address
所以肯定,你需要“@”字符。