更新时间:2022-06-20 20:45:40
不确定这是不是你想要的但是试试这个:
https://github.com/eligrey/FileSaver.js [ ^ ]
这是一个演示:
http://eligrey.com/demos/FileSaver.js/ [ ^ ]
not sure if that's what you want but try this :
https://github.com/eligrey/FileSaver.js[^]
here's a demo :
http://eligrey.com/demos/FileSaver.js/[^]
您无法在客户端文件系统上创建文件,这将是一个巨大的安全风险。
You can't create files on the client file system, it would be a massive security risk.