FileChooserFileChooser.accept版本:23.11.1本頁內容FileChooser.accept() 方法 使用給定的檔案路徑接受檔案選擇器請求。 簽名 class FileChooser { accept(paths: string[]): Promise<void>;} 參數 參數類型描述pathsstring[] 回傳 Promise<void> 備註 這不會驗證檔案路徑是否存在。此外,如果路徑是相對的,則會根據目前的工作目錄解析。對於連接到遠端 Chrome 環境的本機腳本,路徑必須是絕對路徑。