JS调用浏览器自带下载功能下载图片

function download(src) {    var $a = document.createElement('a');    $a.setAttribute("href", src);    $a.setAttribute("download", "");    var evObj = document.createEvent('MouseEvents');  
相关文章
相关标签/搜索