-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zh-CN: create
pkcs11.uninstallModule()
(#24888)
Co-authored-by: A1lo <[email protected]>
- Loading branch information
1 parent
a52a2df
commit 43dc16f
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
files/zh-cn/mozilla/add-ons/webextensions/api/pkcs11/uninstallmodule/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: pkcs11.uninstallModule() | ||
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11/uninstallModule | ||
l10n: | ||
sourceCommit: 43e3ff826b7b755b05986c99ada75635c01c187c | ||
--- | ||
|
||
{{AddonSidebar}} | ||
|
||
卸载 Firefox 中的指定名称的 PKCS #11 模块。 | ||
|
||
这是一个异步函数,返回 [`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise)。 | ||
|
||
## 语法 | ||
|
||
```js-nolint | ||
let uninstalling = browser.pkcs11.uninstallModule( | ||
name // 字符串 | ||
) | ||
``` | ||
|
||
### 参数 | ||
|
||
- `name` | ||
- : `string`,要卸载的模块的名称。这必须与模块的 [PKCS #11 清单](/zh-CN/docs/Mozilla/Add-ons/WebExtensions/Native_manifests#pkcs_11_清单)中的 `name` 属性相匹配。 | ||
|
||
### 返回值 | ||
|
||
[`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise),当模块被卸载后将不带任何参数兑现。 | ||
|
||
若无法找到模块或发生其他错误,该 Promise 将以错误消息拒绝。 | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 示例 | ||
|
||
卸载名为“pkcs11_module”的模块: | ||
|
||
```js | ||
browser.pkcs11.uninstallModule("pkcs11_module"); | ||
``` | ||
|
||
{{WebExtExamples}} |