有没有一个API来控制在Firefox附加SDK的下载? [英] Is there an API to control downloads in Firefox add-on SDK?

查看:150
本文介绍了有没有一个API来控制在Firefox附加SDK的下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firefox中,是否有一个相当于Google Chrome的 chrome.downloads API 的API?



我需要使用诸如暂停,恢复和取消等功能来控制下载。此外,我希望能够删除下载的文件。



如果在Firefox附加SDK中没有API,是否可以做同样的事情另一种方式是什么?

解决方案

API是(MDN文档的链接):


In Firefox, is there an API equivalent to Google Chrome's chrome.downloads API?

I need to control downloads with functions such as pause, resume, and cancel. In addition, I want to be able to remove the downloaded file.

If there is no API in Firefox add-on SDK, is it possible to do the same things in another way?

解决方案

The API's are (links to documentation on MDN):

这篇关于有没有一个API来控制在Firefox附加SDK的下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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