66.环形加载动画(canvas/svg)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> body { margin: 0; padding: 0; text-align: center; } </style> </head> <body> <canvas id="canvas"></canvas> <script> let canvasWidth = 200; let canvasHeight = 200; let centerX = canvasWidth / 2; let centerY = canvasHeight / 2; let r = canvasWidth / 2 - 10; let canvas = document.getElementById('canvas'); canvas.width = canvasWidth; canvas.height = canvasHeight; let ctx = canvas