页面代码如下:
<pre name="code" class="html"><a href="Mailto:test@163.com?CC=test@163.com&BCC=test@163.com&Subject=Hello&Body=你好">给我发邮件</a></pre>
<pre></pre>
参数说明:
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
</p>
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
CC:抄送地址;</p>
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
BCC:密件抄送地址;</p>
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
Subject:主题;</p>
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
Body:邮件内容。</p>
<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">
注:多个邮件地址用""隔开。</p>
第一种
<input type="email">
第二种:正则表达式
var email = 'youemail@gmail.com'var email_reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
if( email_reg.test( email ) ) {
alert('邮箱格式正确')
} else {
alert('邮箱格式错误')
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)