Comments (6)
找到解决办法了,在确定点击事件最后一行加上$('body>canvas').remove();就行,每次得到图片后就删除掉canvas,不会引起图片重复
from blog.
不错,html2canvas 我用的也是这个库
from blog.
@skyshuilan 谢谢~ 本身还想着用canvas原生的方法把html弄进去导出图片,然而感觉好难233
from blog.
html2canvas 在iphone的safari 截取带有渐变css 的文本 就出错了。但是在PC 跟安卓都没有问题。
是否有对这方面的研究~
from blog.
@tishoy 嗯这个还真没有哈哈 感觉可能跟canvas只能绘制进一帧有关系,比如gif这种也绘制不进去。也许safari里面对渐变的实现也许会有类似“多帧”的操作~~ 哈哈纯属猜测
from blog.
你好,我想请教一下,为什么我在Chrome上测试的时候,第一次截图后退出然后再截图的时候,第二次的截图会和第一的重叠
from blog.
Related Issues (20)
- 用canvas实现视频播放与弹幕功能 HOT 5
- 基于canvas使用贝塞尔曲线平滑拟合折线段 HOT 8
- 基于canvas使用粒子拼出你想要的文字 HOT 7
- 11
- 基于canvas使用粒子拼出你想要的文字[2]——粒子的动画效果
- bezierMaker.js——N阶贝塞尔曲线生成器 HOT 6
- Canvas进阶——贝塞尔公式推导与物体跟随复杂曲线的轨迹运动 HOT 1
- canvas进阶——实现静态图像的变形并合成动态效果 HOT 6
- 基于JavaScript求解八数码的路径搜索并生成动画效果 HOT 4
- 记一次“失利后”经过半年准备通过阿里社招的经历与感悟 HOT 25
- aaa HOT 1
- 由一个“bug”到鲜为人知的jQuery.cssHooks
- 结合kmp算法的匹配动画浅析其基本** HOT 3
- 有掘金地址吗 HOT 1
- 你好 我想请问下 我根据您写的绘制贝塞尔曲线,拿到的[x,y]的数据 如何让物体跟随运动
- 淘系技术部-用户增长团队内推指南
- 阿里面试评级 HOT 2
- 怎么更好的阅读博客?
- 请问一下基于JS的深度优先搜索生成动画怎么解啊
- 回顾从学生到阿里,经历的几次蜕变 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.