if ($(this).val() == "" || $(this).val() == null) {
filterString = "";
} else
{
filterString = "^" + replaceRegexStr(filterList[0]) + "$";
for (var j = 1; j <
filterList.length; j++) {
filterString = filterString + "|" +
"^" + replaceRegexStr(filterList[j]) + "$";
}
}
^$ 这个即是“”的正则
验证字符串空“” 的表达式
时间: 2024-11-08 10:09:14