首頁| 新聞| 娛樂| 游戲| 科普| 文學| 編程| 系統| 數據庫| 建站| 學院| 產品| 網管| 維修| 辦公| 熱點
Function GetURL(url) Set Retrieval = CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "GET", url, False.Send GetURL = bytes2bstr(.responsebody)'對取得信息進行驗證,如果信息長度小于100則說明截取失敗if len(.responsebody)<100 thenresponse.write "獲取遠程文件 "&url&" 失敗。"response.endend ifEnd With Set Retrieval = Nothing End Function' 二進制轉字符串,否則會出現亂碼的!function bytes2bstr(vin) strreturn = "" for i = 1 to lenb(vin) thischarcode = ascb(midb(vin,i,1)) if thischarcode < &h80 then strreturn = strreturn & chr(thischarcode) else nextcharcode = ascb(midb(vin,i+1,1)) strreturn = strreturn & chr(clng(thischarcode) * &h100 + cint(nextcharcode)) i = i + 1 end if next bytes2bstr = strreturn end function function savetofile(bodyall,filename)dim objstream1set objstream1=createobject("adodb.stream")objstream1.type=2objstream1.openobjstream1.position=objstream1.sizeobjstream1.writetext bodyallobjstream1.savetofile filename,2objstream1.closeset objstream1=nothingend function'聲明截取的格式,從Start開始截取,到Last為結束Function GetKey(HTML,Start,Last)filearray=split(HTML,Start)filearray2=split(filearray(1),Last)GetKey=filearray2(0)End Functionurl="http://www.86516.com"Html = GetURL(Url)savetofile html,"ce.htm" [Ctrl+A 全選 注:如需引入外部Js需刷新才能執行]
12下一頁閱讀全文
Intel工程樣品CPU的識別方法
圖解CMOS路線和硬盤光驅跳線的
硬盤分區如何設置準確的分區空間
回眸一笑百魅生,六宮粉黛無顏色
歲月靜美,剪一影煙雨江南
蕪湖有個“松鼠小鎮”
小滿:小得盈滿,一切剛剛好!
一串串晶瑩剔透的葡萄,像一顆顆寶石掛在藤
正宗老北京脆皮烤鴨
人逢知己千杯少,喝酒搞笑圖集
搞笑試卷,學生惡搞答題
新聞熱點
疑難解答
圖片精選
asp編譯成dll-圖形化教程第1/2頁
一份ASP內存的釋放的實驗報告
ASP編程入門進階(五):內置對象Respons
ASP編程入門進階(二十):ADO組件之顯示
網友關注