日期:2014-05-16 浏览次数:20350 次
var strs = ["abc=123475241", "abc-123475241"]; for(var i = 0, len = strs.length; i < len; i++){ alert(/^abc[=-]\d+$/.test(strs[i])); }