<div class="codetitle"> <span><a style="CURSOR: pointer" data="17951" class="copybut" id="copybut17951" onclick="doCopy('code17951')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code17951"> <br>/* <br>*验证邮箱格式是否正确 <br>*参数strEmail,需要验证的邮箱 <br>*/ <br>function chkEmail(strEmail) { <br>if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(strEmail)) { <br>return false; <br>} <br>else { <br>return true; <br>} <br>} <br> </div>