php 正则

[复制链接]
查看11 | 回复0 | 2007-7-23 17:51:54 | 显示全部楼层 |阅读模式
function wrestMoney(fld) { if (!wrestTrim(fld)) return; var pattern =/^[0-9]{1,}\.[0-9]{1,}|\d+$/; if (!pattern.test(fld.value)) { if (wrestFld == null) { wrestMsg = wrestItemname(fld) + " : 不是数字.\n"; wrestFld = fld; } } }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则