常用正则表达式,来自新浪微博的js
摘要:
STK.register("common.setting.rule", function(a) { var b = {}; b.isEmpty = function(a) { return /^\s*$/g.test(a.replace(/^\s+|\s+$/g, "")) }; b.isNumber = function(a) { return /^[+\-]?\d+(\.\d+)?$/.test(a) }; b.isName = function(a) { return /^[0-9a-zA-Z\u4e00-\u... 阅读全文
posted @ 2013-01-30 10:33 李玉龙 阅读(391) 评论(0) 推荐(0)
浙公网安备 33010602011771号