- 版主
- 211464
- 21164
- 13
- 258 朵
- 47817 个
- 60 个
- 263800
- 2008-12-23
|
1#
t
T
发表于 2009-04-17 11:56
|
|只看楼主
怎么获得网页的源代码- VBSBegin
- Function zhuanghuan(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
- zhuanghuan = strReturn
- End Function
- VBSEnd
- set http=createobject("Microsoft.XMLHTTP")
- url="http://www.jdyou.com/"
- http.open "get",url,false
- http.send
- zhi=zhuanghuan(Http.responsebody)
- msgbox (zhi)
-
复制代码
|