12

新的 API 可以让网页直接读写硬盘上的文件?

 2 years ago
source link: https://juejin.im/post/5ded942a51882512820ad976
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
从前,网页中想要实现文件的读写是比较麻烦的,为了读取一个文件,我们需要创建一个 type="file" 的 input 标签让用户选择一个文件,而为了保存一些内容到本地硬盘,我们则需要使用 a 标签的 download 属性去触发文件保存。 而连续的文件保存则

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK