Chrome扩展程序写入文件系统 [英] Chrome Extension write to file system

查看:1466
本文介绍了Chrome扩展程序写入文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够截取页面并给用户选择将其保存到桌面(使用标准的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):

制作Chrome扩展程序下载文件

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆