Skip to content

Commit

Permalink
Update files/zh-cn/mozilla/add-ons/webextensions/api/tabs/query/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Ren <[email protected]>
  • Loading branch information
yin1999 and jasonren0403 authored Jul 9, 2023
1 parent 5980d18 commit 62975fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let querying = browser.tabs.query(queryObj)

### 返回值

一个 [`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise) 将被兑现为一个包含 {{WebExtAPIRef('tabs.Tab')}} 对象(其中包含有关每个匹配的标签页的信息)的数组
一个将兑现为包含 {{WebExtAPIRef('tabs.Tab')}} 对象(其中包含有关每个匹配的标签页的信息)的数组的 [`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise) 对象

如果发生任何错误,promise 将以一条错误消息被拒绝。

Expand Down

0 comments on commit 62975fe

Please sign in to comment.