HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
View in English Always switch to English
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.
メモ: この機能はサービスワーカー内でのみ利用可能です。
get() はClients インターフェイスのメソッドは、指定された id と一致するサービスワーカークライアントを取得し、Promise で返します。
get()
Clients
id
Promise
get(id)
取得するクライアントの id を表す文字列です。
Client オブジェクトまたは undefined に解決される Promise。
Client
undefined
self.clients.get(id).then((client) => { self.clients.openWindow(client.url); });
Loading…