function isURL() {
            var strRegex = "^((https|http|ftp|rtsp|mms)://)?[a-z0-9A-Z]{3}\.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z]\.com|net|cn|cc (:s[0-9]{1-4})?/$";
            var re = new RegExp(strRegex);
            if (re.test(document.getElementById("<%=txtServerIP.ClientID %>").value)) {
                alert("成功");
                return true;
            } else {
                alert("失败");
                 return false;
            }
        }

有问题请联系我:494960120  QQ

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-03
  • 2021-07-07
  • 2022-02-16
  • 2021-12-16
  • 2022-12-23
  • 2021-06-06
  • 2021-07-10
相关资源
相似解决方案