<script>
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("get", "test.txt", false);
xmlhttp.setRequestHeader("Accept-Encoding", "gzip, deflate");
xmlhttp.send(null);
window.name = xmlhttp.responseBody;
document.write("<xmp>" + escape(window.name) + "</xmp>");
</script>
posted on 2008-06-27 09:13
汪杰 阅读(1259)
评论(0) 编辑 收藏 引用 所属分类:
javascript