 = cvs.getContext('2d')
      init(cvs)
      requestAnimationFrame(createBarAnim(ctx)) // 启动动画
    }
    /**
     * 渲染canvas
     * @param {string} id
     */
    function renderCircle(id) {
      id = id.replace('#', '')
      /** @type {HTMLCanvasElement} */
      const cvs = document.querySelector(`#${id}`)
      if (cvs === null || !cvs.getContext) {
        return false
      }
      const ctx = cvs.getContext('2d')
      init(cvs)
      requestAnimationFrame(createCircleAnim(ctx)) // 启�