您的位置:编程知识库>javascript验证邮箱

javascript验证邮箱

  • 2012-11-05JavaScript验证邮箱

    var sText = document.getElementById(‘mail’).value; //onblur 为控件失去焦点事件 document.getElementById(‘mail’).onblur = function sValue(){ sText = this.value; var reMail =/^(?:[a-zA-Z0-9]+[_\-\+\.]?)*[a-zA-Z0-9][email protected](?:([a-zA-...