(asyncfunction(){console.log("starting");letImage=require("canvas").Image;letcreateCanvas=require("canvas").createCanvas;letimg=awaitnewPromise((resolve,reject)=>{letimg=newImage();img.onerror=reject;img.onload=resolve;img.src="data:image/webp;base64,UklGRvYRAABXRUJQVlA4IOoRAAAQgQCdASpAAfAA...
integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -10228,7 +10012,7 @@ rgba-regex@^1.0.0: resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" integr...
html2canvas(document.body).then(function(canvas) { document.body.appendChild(canvas); var url = canvas.toDataURL(); console.log(url); }); }</script><body>//不用往后拖了,为了方便看效果,放的是base64转码后的图片地址,所以很长...<divstyle="background:url(data:image/jpeg;base64,/9j/4AA...
"lockfileVersion": 1, "requires": true, "dependencies": { "accepts": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { "mime-types": "2.1.18", "neg...
fdbjpe21TAL)^j{Tpc=-jjUnR01uV66eVS0Ya$AVr-+_fwP zOZ$rB90F2|sOaYA=Iz_JbzM7bK)TGm^IR;osS(E+2hUJ~nEcqtV0uby7$_D;A|#&Q z9VK@iYKREtDsD?(CrrGAM&NHM1KeY~Uc(Ut?X8st#&=3-*Tr@p_ial?>(y$tzETKC z3=~zP!oZ=bt7>)g_NQUBsa98sf%*+7WTg*rv_o1jX7E9Z1ww_dOR`d|O8 z...