js是本身是不可以的 但是变通下呀 <script language="vbscript"> function bytes2BSTR(vIn) dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode 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 </script> <script language="JScript"> var xmlhttp=new ActiveXObject("Msxml2.xmlhttp"); xmlhttp.open("get","http://www.e786.com/ip/index.php",false); xmlhttp.send(); var str=bytes2BSTR(xmlhttp.ResponseBody); document.write("<div style=display:none>"+str+"</div>"); alert(document.all.tags("TABLE")[0].all.tags("TD")[4].innerHTML); </script>
以什么方式存在?
在哪里运行?
怎么运行?
但是变通下呀
<script language="vbscript">
function bytes2BSTR(vIn)
dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
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
</script>
<script language="JScript">
var xmlhttp=new ActiveXObject("Msxml2.xmlhttp");
xmlhttp.open("get","http://www.e786.com/ip/index.php",false);
xmlhttp.send();
var str=bytes2BSTR(xmlhttp.ResponseBody);
document.write("<div style=display:none>"+str+"</div>");
alert(document.all.tags("TABLE")[0].all.tags("TD")[4].innerHTML);
</script>