傳回指定工作階段之所有索引標籤的唯一識別碼。
語法
Microsoft.Apm.getFocusedSession().getAllTabs();
返回值
索引標籤識別碼的集合。
Example
const session = Microsoft.Apm.getFocusedSession();
session.getAllTabs().forEach(id => {
const tab = session.getTab(id);
console.log(tab.title);
});
傳回指定工作階段之所有索引標籤的唯一識別碼。
Microsoft.Apm.getFocusedSession().getAllTabs();
索引標籤識別碼的集合。
const session = Microsoft.Apm.getFocusedSession();
session.getAllTabs().forEach(id => {
const tab = session.getTab(id);
console.log(tab.title);
});