js 把网页内容保存到本地.txt ie浏览器可以,360浏览器不行,怎么办
<inputtype="button"value="Save"onclick="saveText()"><script>functionsaveText(){varstr...
<input type="button" value="Save" onclick="saveText()">
<script>
function saveText()
{
var strHTML = "wwwwwwwwwwwww";
var winSave = window.open();
winSave.document.open ("text","gb2312");
winSave.document.write (strHTML);
winSave.document.execCommand ("SaveAs",true,"table.htm");
winSave.close();
}
</script> 展开
<script>
function saveText()
{
var strHTML = "wwwwwwwwwwwww";
var winSave = window.open();
winSave.document.open ("text","gb2312");
winSave.document.write (strHTML);
winSave.document.execCommand ("SaveAs",true,"table.htm");
winSave.close();
}
</script> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |