源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp下的一个检测链接是否正常的函数

  • 时间:2021-01-10 02:35 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp下的一个检测链接是否正常的函数
Function urlChk(sUrl) on error resume next Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP") xmlHttp.open "GET",sUrl,false xmlHttp.send     if xmlHttp.Status <> 200 then         urlChk=false     else         urlChk=true     end if End Function sUrl="http://www.1sucai.cn" if urlChk(sUrl) then     response.write(sUrl&"(可以正常访问)") else     response.write(sUrl&"(访问不了)") end if
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部