<a href="#" οnclick=document.execCommand("saveAs","ture","filename.txt")>保存本页</a>
如果仅仅是document.execCommand("saveAs"),弹出按默认的另存为对话框。
<a href="#" οnclick=document.execCommand("saveAs","ture","filename.txt")>保存本页</a>
如果仅仅是document.execCommand("saveAs"),弹出按默认的另存为对话框。