blockly > Toolbox > attachEvents_
將事件監聽器新增至工具箱容器 div。
Signature:
protected attachEvents_(container: HTMLDivElement, contentsContainer: HTMLDivElement): void;
參數
參數 |
類型 |
說明 |
容器 |
HTMLDivElement |
工具箱的 HTML 容器。 |
contentsContainer |
HTMLDivElement |
工具箱內容的 HTML 容器。 |
退貨:
void
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["The `Toolbox.attachEvents_()` method is a protected method used to add event listeners to the toolbox's HTML container."],["This method takes two HTMLDivElement parameters: `container` for the main toolbox structure and `contentsContainer` for the elements within the toolbox."],["It does not return any value (void) after successfully attaching the event listeners."]]],[]]