HTML中使用JS下载
模拟<a>标签点击
let aLink = document.createElement('a');
aLink.download = 'screenshot.png';
aLink.href = SS.toDataURL("image/png");
aLink.click();
模拟<a>标签点击
let aLink = document.createElement('a');
aLink.download = 'screenshot.png';
aLink.href = SS.toDataURL("image/png");
aLink.click();