我本意是想运用canvas的渐变效果,所以才要在canvas中实现闪烁效果 先上图: 直接上代码: body简简单单一个canvas <canvas id="myCanvas" width="200" height