blockly >垃圾桶 >emptyContents
Deletecan.emptyContents() 方法
清空垃圾桶內容。如果內容飛報目前開啟中,就會關閉。
Signature:
emptyContents(): void;
傳回:
void
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-12 (世界標準時間)。
[null,null,["上次更新時間:2024-09-12 (世界標準時間)。"],[[["`emptyContents()` is a method within the `Trashcan` class of Blockly that clears out all items held within the trashcan."],["Executing this method will also automatically close the contents-flyout if it happens to be open at the time."],["The method does not return any value (void)."]]],["The `emptyContents()` method within the Trashcan class clears the trashcan's contents. It also closes the trashcan's flyout if it is currently displayed. This method does not return any value, as indicated by the `void` return type. The method's sole action is to empty the trashcan and, if needed, to close the related flyout.\n"]]