![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
npm
sasha学习
这个作者很懒,什么都没留下…
展开
-
关于ios视频和音频不能一进来页面进行播放
解决方案:1.一定要有用户触摸行为2.全局的touchstart里播放document.addEventListener(‘touchstart’, play, false)离开页面document.removeEventListener(‘touchstart’, play, false)3.document.getElementById(player${index}).play();...原创 2022-04-25 09:47:24 · 257 阅读 · 0 评论 -
vue 实现下载pdf、导出png、打印功能
1.下载PDF引入 html2canvas 和 jspdfnpm install html2canvasnpm install jspdf --save2.在utils文件创建htmlToPdf.js// 导出页面为PDF格式import html2Canvas from 'html2canvas'import JsPDF from 'jspdf'export default { install(Vue, options) { Vue.prototype.getPdf =原创 2021-11-19 10:46:00 · 1342 阅读 · 0 评论