87,901
社区成员
发帖
与我相关
我的任务
分享
<script>
function SaveAs()
{
var win = window.open('about:blank','');
win.document.write("hello"); //hello可用ajax来获取目标内容,前提要在同一个域下
win.document.execCommand('SaveAs',true,'test.txt');
win.close();
}
SaveAs();
</script>