对话框接受本页总览接受当对话框被接受时返回。 用法 await dialog.accept(promptText) 参数 名称类型详情promptText可选string输入到提示框中的文本。如果对话框类型不是提示框,则不会产生任何效果。 示例 dialogAccept.jsawait dialog.accept();await dialog.accept(promptText);