标签:
function CheckUrl(a) {
var falg = true;
var regstr = /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?$/;
//var reg = new RegExp("^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?$");
var value = $(a).val();
if (value != "") {
if (!regstr.test(value)) {
falg = false;
}
}
}
标签:
原文地址:http://www.cnblogs.com/qhy1277/p/4961751.html