会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
shirliey
博客园
首页
管理
2019年4月3日
在Vue项目中使用html2canvas生成页面截图并上传
摘要: 引入cnpm install html2canvas. html代码 <!-- 把需要生成截图的元素放在一个元素容器里,设置一个ref --> <div class="image_tofile" ref="imageTofile"> <!-- 这里放需要截图的元素,自定义组件元素也可以 --> </
阅读全文
posted @ 2019-04-03 10:33 shirliey
阅读(9633)
评论(0)
推荐(0)
编辑