Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

保存canvas代码

在jquery库看到一个好看的canvas动画效果,代码保存下来却显示不了。不知道怎么回事。

https://www.jq22.com/js/a6.html

这个要如何保存下来,并且能正常显示?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

canvas是不能保存动图的,你保存的是当时那一帧。如果你需要展示这个效果,需要拿到它的js源码,然后使用它


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...