会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CoderWayne
管理
2008年10月31日
正则简单检测字符有效性
摘要: if(trim(txt.value)=="") { return "用户名不能为空"; } if(txt.value.length16) { return "必须为2-16位字符"; } if((/\s/).test(txt.value)) { return "不能含有空格"; } return "";
阅读全文
posted @ 2008-10-31 16:54 CoderWayne
阅读(305)
评论(0)
推荐(0)
公告