- 博客(2)
- 收藏
- 关注
原创 移动端h5与原生交互JSBridge初体验
1.移动端判断终端const ua = window.navigator.userAgent.toLowerCase()// android平台const isAndroid = (() => { return /Android|Adr/i.test(ua)})()// ios平台const isIos = (() => { return /iPhone|iPod|iPad/i.test(ua)})()// 微信生态const isWechat = (() =
2021-05-10 11:34:36
1413
5
原创 移动端h5截图与原生ios、android的兼容交互
项目场景:h5移动端项目需要生成截图与原生app进行图片分享的交互问题描述:使用html2canvas生成h5截图在android app截图位置偏移且偏移量随机android截图ios截图解决方案:在IOS使用html2canvas ,Android使用domtoimage1.https://github.com/niklasvh/html2canvas2.https://github.com/tsayen/dom-to-imageAndroi...
2021-05-10 11:21:28
1028
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅