用javascript实现读取txt文档的脚本
时间:2021-07-01 10:21:17
帮助过:13人阅读
duqu.htm
代码如下:
<html><body>
<span id=showImport1></span>
<IE:Download ID="oDownload1" STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downData){
document.getElementById('showImport1').innerHTML=downData;
}
oDownload1.startDownload('qgwl.txt',onDownloadDone)
</script>
</body>
</html>
qgwl.txt
代码如下:
这里是文本内容