Chrome扩展程序写入文件系统 [英] Chrome Extension write to file system
问题描述
我希望能够截取页面并给用户选择将其保存到桌面(使用标准的OS文件保存提示)。这可能来自Chrome扩展程序环境吗?我不担心图像方面,更多的是保存到用户文件系统。
I'd like to be able to take a screenshot of a page and give the user the option to save it to their desktop (with a standard OS file save prompt). Is this possible from the Chrome Extension environment? I'm not worried about the image side, more the saving to the user file system.
我看过以下几页(其中包括):
I've looked at the following pages (among others):
http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-support
推荐答案
查看此HTML5Rocks更新: http: //updates.html5rocks.com/2011/08/Saving-generated-files-on-the-client-side
Take a look at this HTML5Rocks update: http://updates.html5rocks.com/2011/08/Saving-generated-files-on-the-client-side
下面是这个的演示行动: http://eligrey.com/demos/FileSaver.js/
Here's a demo of this in action: http://eligrey.com/demos/FileSaver.js/
这篇关于Chrome扩展程序写入文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!