對話框accept本頁內容accept當對話框被接受時返回。 用法 await dialog.accept(promptText) 參數 名稱類型詳細資訊promptText選填字串要輸入到提示中的文字。如果對話框的類型不是提示,則不會產生任何效果。 範例 dialogAccept.jsawait dialog.accept();await dialog.accept(promptText);