摘要:
保存文件为txt,浏览器下载到本地。使用Blob对象 const data = "内容" // 这里填内容的字符串 const blob = new Blob([data], { type: "text/plain" }) const a = document.createElement("a") 阅读全文
posted @ 2021-08-20 15:44
herry菌
阅读(632)
评论(0)
推荐(0)
💗博客园 ★☆博主:herry菌💗
💗2023💗前端实战派小码农