js创建blob下载
Posted 79 months ago js 创建 blob 下载
b=document.querySelector('.exportbutton')
b.download='xxx.json'
data=new Blob(['aaaaa'])
b.href=window.URL.createObjectURL(data)
b=document.querySelector('.exportbutton')
b.download='xxx.json'
data=new Blob(['aaaaa'])
b.href=window.URL.createObjectURL(data)