From bacb9b46e28b9f0d27a41414646b976035f84671 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Sat, 21 Sep 2024 13:28:18 +0800 Subject: [PATCH] zh-CN: create `extension.lastError` (#23539) Co-authored-by: A1lo --- .../api/extension/lasterror/index.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 files/zh-cn/mozilla/add-ons/webextensions/api/extension/lasterror/index.md diff --git a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/lasterror/index.md b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/lasterror/index.md new file mode 100644 index 00000000000000..1e79d8cae77d79 --- /dev/null +++ b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/lasterror/index.md @@ -0,0 +1,52 @@ +--- +title: extension.lastError +slug: Mozilla/Add-ons/WebExtensions/API/extension/lastError +l10n: + sourceCommit: b8a0743ca8b1e1b1b1a95cc93a4413c020f11262 +--- + +{{AddonSidebar}} + +> [!WARNING] +> 此方法已被弃用,请改用 {{WebExtAPIRef("runtime.lastError")}}。 + +{{WebExtAPIRef("runtime.lastError")}} 的别名。 + +## 浏览器兼容性 + +{{Compat}} + +{{WebExtExamples}} + +> [!NOTE] +> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/api/extension/#property-lastError) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)。 + +