Ta_da

Ta_da

View project on GitHub

HTML中使用JS下载

模拟<a>标签点击

let aLink = document.createElement('a');
aLink.download = 'screenshot.png';
aLink.href = SS.toDataURL("image/png");
aLink.click();