如何验证输入的是否为email <script type="text/javascript">var re = \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*;alert(re.test('[email protected]'));</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script type="text/javascript">var re = \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*;alert(re.test('[email protected]'));</script> 不好意思,前面两个发重了,这个:<script type="text/javascript">var re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;alert(re.test('[email protected]'));</script> 验证Email地址:“^\w+[-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$” js or jquery 字符串 插入 字符 的 位置 计算 只要用jquery validate提交验证一次后,错误提示一直存在. ExtJs如何使GridPanel居中显示 请教一个关于动态ID的设置与获取问题,谢谢! 关于DIV关闭的问题!! 初学者问题:页面刷新后,如何保存textbox的值不被置空? 一个小问题 关于给另一个框架赋值问题,求大虾帮忙解决 javascript 中文简繁局部互换问题 急!如何同时在两个iframe里调入页面? 全部家当只有10分了,希望好心的人给我看看!! 如何单独运行js文件?
var re = \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*;
alert(re.test('[email protected]'));
</script>
var re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
alert(re.test('[email protected]'));
</script>