html2canvas以及domtoimage的使用踩坑总结 动态获取的二维码失效如何生成海报

//判断手机为安卓还是ios 安卓html2canvas方法 ios系统dom-to-image方法
$(".code").click(function() {
var u = navigator.userAgent;
var isiOS = !!u.match(//(i[^;]+;( U;)? CPU.+Mac OS X/);
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if(isiOS) {
window.location.href = "mycodeios.html"
} else if(isAndroid) {
window.location.href = "mycode.html"
}
})

安卓html2canvas方法


html2canvas以及domtoimage的使用踩坑总结 动态获取的二维码失效如何生成海报最先出现在Python成神之路

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/11640.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>