if(/[<>\'\"\ \ ]/.test(fm.username.value)) { alert("昵称包含非法字符"); fm.username.focus(); return false; }
js 正则验证非法字符
原创菜鸟不菜么 ©著作权
文章标签 js 正则 文章分类 JavaScript 前端开发
上一篇:PHP数组foreach追加值
下一篇:thinkphp 注意事项
菜鸟不菜么 ©著作权
文章标签 js 正则 文章分类 JavaScript 前端开发
if(/[<>\'\"\ \ ]/.test(fm.username.value)) { alert("昵称包含非法字符"); fm.username.focus(); return false; }
上一篇:PHP数组foreach追加值
下一篇:thinkphp 注意事项
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M