tag(標籤)

透過 eagle.tag API 可以方便存取當前應用中的標籤。

// 取得所有標籤
const tags = (await eagle.tag.get());

// 取得最近使用標籤
const recents = (await eagle.tag.getRecents());

方法

get()

獲取所有標籤。

  • 返回 Promise<tags: Object[]> - tags 查詢結果。

const tags = (await eagle.tag.get());

getRecents()

獲取最近使用的的標籤。

  • 返回 Promise<tags: Object[]> - tags 查詢結果。

const recents = (await eagle.tag.getRecents());

最后更新于