Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ドキュメントは安定しているようです。しかし、私はその慣習について少しイライラしています。たとえば、次のスクリーンショットのフィールド名は何ですか? ドキュメントを読むためのガイドラインがあるヘルプポイントはありますか?
nameこの場合、ポートに使用できるオプションの名前です。次のように使用します。
name
var port = chrome.runtime.connect({name:"testName"});
その後、 にport.nameなります"testName"。
port.name
"testName"
connectInfoはオブジェクトとして定義されており、その下にインデントされてリストされているフィールドname(is など) がその一部であることを意味します。
connectInfo