web 端sdk 调用destroy #1077
-
web 端sdk 调用destroy 后从返回的 pagview 看是销毁了,但是页面还是保留最后一帧是什么问题 const playSongs = async () => { pagView.addListener("onAnimationEnd", () => {
PAGView 的 destroy 只是清除实例,并没有清除 Canvas 的内容或者从 DOM 树上移除 Canvas, 因为 Canvas 是由业务上创建的,控制权在业务上。如果你需要在动画结束后将画面清空,你有几个方法:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The above content was transferred from a legacy post on the PAG forum |
Beta Was this translation helpful? Give feedback.
The above content was transferred from a legacy post on the PAG forum
以上内容搬运来自 PAG 论坛的历史帖子