當前位置:首頁 > 建站常識 > 列表

asp遍曆本地文件判斷圖片路徑是否正确

點擊:時(shí)間:2016/11/3關鍵詞:asp asp開發 網站建設
<%Function GetBody(url)'Set Retrieval = CreateObject("Microsoft.XMLHTTP") Retrieval.Open "Get", url, False, "", "" Retrieval.
<%Function GetBody(url)'Set Retrieval = CreateObject("Microsoft.XMLHTTP")  Retrieval.Open "Get", url, False, "", ""  Retrieval.Send() if (Retrieval.status=404) thenGetBody=""elseGetBody =Retrieval.ResponseBodyend ifEnd Functionstr = GetBody("static/picture/logo.jpg")if cstr(str) <> "" thenresponse.write "存在"elseresponse.write "不存在"end if%>
預約建站
免費提供網站優化(huà)
領取關鍵詞