Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Oct 2, 2024
1 parent df22527 commit ab18519
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ chrome.extension.sendRequest(
- : `function`,将传递如下参数的函数:

- `response`
- : `any`由请求处理程序发送的 JSON 响应对象。如果在连接到插件时发生错误,回调函数将不带参数地被调用,且 {{WebExtAPIRef('runtime.lastError')}} 将被设置为错误消息。
- : `any`由请求处理器发送的 JSON 响应对象。如果在连接到插件时发生错误,回调函数将不带参数地被调用,且 {{WebExtAPIRef('runtime.lastError')}} 将被设置为错误消息。

## 浏览器兼容性

Expand All @@ -44,7 +44,7 @@ chrome.extension.sendRequest(
{{WebExtExamples}}

> [!NOTE]
> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/api/extension/#method-sendRequest) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)
> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.google.cn/docs/extensions/reference/api/extension/#method-sendRequest) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
Expand Down

0 comments on commit ab18519

Please sign in to comment.