Closed andyTsing closed 4 years ago
I found the reason: because there is no call to stop the animation(When the component is componentWillUnmount(), there are running animation frames), and there are no svg instances on other pages, all the results of the animation are all attached to the page body.
componentWillUnmount() {
this.AS(0X01);
this.AS(0X00, '#H');
}
AS is a function to Stop the corresponding animation。
lElement.append(data); how to clear it? lElement.remove();?