百度地图可以导出成图片吗? 普通导出失效了。
html2canvas($0, { useCORS: true, allowTaint: true, // width: box.clientWidth, // height: box.clientHeight, // scrollY: 0, // scrollX: 0, // scale: 1, }).then(canvas => { const url = canvas.toDataURL(); const triggerDownload = $("").attr("href", url).attr("download", "map.png").appendTo("body"); triggerDownload[0].click(); triggerDownload.remove(); });