// 下载二维码
DownloadQR() {
const qrcode = document.getElementById(this.qrcodeID);
const canvas = qrcode.querySelector("canvas");
const imgurl = canvas.toDataURL("image/jpeg");
const a = document.createElement("a");
a.href = imgurl;
a.download ="直播二维码.png"; // 图片名称
a.click();
},
qrcodejs2生成二维码后点击下载
于 2023-10-16 16:08:02 首次发布