我有输入:
<input ng-model="email" type="email" id="form-email" name="email" placeholder="Inter email" maxlength="250">
当我进入这么长的托管时:
fax@test.cooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooom
我有:
$scope.email // undefined
document.getElementById("form-email").value //fax@test.cooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooom
但是当我进入
fax@testooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooh.com
我有
$scope.email // fax@testooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooh.com
如何解决这个问题?
最佳答案
这没有问题,第一封电子邮件无效,第二封电子邮件有效,这就是它被接受的原因。
Each domain name consists of two parts.
Top Level Domain - A top-level domain (TLD) is the part of the domain name located to the right of the dot. The most common top-level domains are .COM, .NET, and .ORG. Some other popular top-level domains are .BIZ, .INFO, .NAME and .IN etc.
Second Level Domain - . The second-level domain name is the part of the domain name located to the left of the dot. Steps-to-make-your-own-website is the second-level domain name and represents the organization or entity behind the internet. Second Level Domain name must be registered with an Internet Corporation for Assigned Names and Numbers (ICANN)-accredited registrar.
为什么第一封电子邮件无效?
- 因为它不包含有效的顶级域。
以下是互联网顶级域的列表: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
为什么第二封电子邮件有效?
- 因为它包含有效的顶级域和二级域。
关于javascript - 如何使用 AngularJS 获取 HTML-INPUT-EMAIL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28826804/