想用js自动保存网页,效果是这样的,点击网页,自动保存网页到本地,什么也不用操作
请参考前人答复
function test() {
var html = document.body.outerHTML;
var fso = new ActiveXObject("scripting.filesystemobject");
var shell = new ActiveXObject("wscript.shell");
var file = fso.createtextfile("d:\test.html",true);
file.write(html);
file.close();
shell.run("d:\test.html");
}
保存为图片是html文件,并且里面的资源一起保存?前者用html2canvas
后者不是js能搞的。。
是不是和网页历史记录一样
这个和单页面抓取有共同处。期待方案。