document.execCommand("SaveAs",true,"aaa"); //将当前web页面另存为文件。第三个参数为文件名,可以自己设置,为空的时候为当前页文件的文件名。 转载于:https://www.cnblogs.com/Michael-Ben/p/3184155.html