hi guys, Snow just a layer, Why is an error reported ?
The layer is not a global layer. You can only call it within the scope of the interval function. Put the animation in the interval function. Better yet, you can put the "create layer" and animation in its own function and call that function in the interval
Thanks, it works. The snow began to fall
Or just even define Snow = null before the interval and then fill it with a layer after the fact.