tabGroups.get

返回標籤頁組的詳細資訊。

語法

js
let tabGroupDetails = await browser.tabGroups.get(
    groupId                // integer
);

引數

groupId

integer。要返回詳細資訊的標籤頁組的 ID。

返回值

一個 Promise,它會以一個 tabGroups.TabGroup 物件 fulfilled。如果請求失敗,Promise 會以一個錯誤訊息被 rejected。

瀏覽器相容性