xmlhttp的输出问题. window.document.write 搞定了,但发现一个问题,就是显示乱码,应该在哪一步设置GB2312? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BodyText=BytesToBstr(oSend.responseText,"gb2312")Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothingEnd Function 测过了,没有乱码,看看是不是ie编码设置的问题-----------------------<script language="JScript">var oSend = new ActiveXObject("MSXML2.XMLHTTP.3.0");oSend.open("get" , "http://www.163.com" , false);oSend.send();window.document.write(oSend.responseText);</script> 请问如何获取js文件 参数??? 如何在网页中模拟web共享文件夹的后退功能 js中的innerHTML问题 双击一行如何得到这一行的第一列和第三列的值? 大师请指点JQ插件开发入门问题感谢 Js的setInterval不能传递this吗? 解难题,送高分:层拖动问题 各位兄弟帮忙:关于文本框样式设置问题? 不知哪位做过用javascript来取出数据库里的数据 如何实现选中符选框选中时显示后面的文本域? 这样一个循环,如何跳出? 请教如何取出页面中一组text控件的值??
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
-----------------------
<script language="JScript">
var oSend = new ActiveXObject("MSXML2.XMLHTTP.3.0");
oSend.open("get" , "http://www.163.com" , false);
oSend.send();
window.document.write(oSend.responseText);
</script>