pkcs11.uninstallModule()
卸载 Firefox 中的指定名称的 PKCS #11 模块。
这是一个异步函数,返回 Promise
。
语法
js
let uninstalling = browser.pkcs11.uninstallModule(
name // 字符串
)
参数
name
-
string
,要卸载的模块的名称。这必须与模块的 PKCS #11 清单中的name
属性相匹配。
返回值
Promise
,当模块被卸载后将不带任何参数兑现。
若无法找到模块或发生其他错误,该 Promise 将以错误消息拒绝。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
uninstallModule |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
示例
卸载名为“pkcs11_module”的模块:
js
browser.pkcs11.uninstallModule("pkcs11_module");