这个是THINKPHP框架的路由函数,你如果不是用的这个框架的话,肯定是失效报错的。 ------解决思路---------------------- val = [email protected]'; var pattern = /^\w+((-\w+) ------解决思路---------------------- (\.\w+))*\@[A-Za-z0-9]+((\. ------解决思路---------------------- -)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; return pattern.test(val); ------解决思路----------------------
你应该只要提交表单里面的email到你的那个方法去进行验证即可不需要全部序列化后提交吧?还有救是提交的字段是否跟你获取的字段匹配?把这几个排查下,估计就能看出问题出在哪边了。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn