File System Access API
<button onclick="saveFile()">保存文件</button><script>async function saveFile() {// create a new handleconst newHandle = await window.showSaveFilePicker();// create a FileSystemWritableFileStream to write toconst writableStream = await newHandle.createWritable();// write our fileawait writableStream.write("hello");// close the file and write the contents to disk.await writableStream.close();}</script>
