            // 将截图保存为图片
            let imgData = canvas.toDataURL("image/png");
            let link = document.createElement("a");
            link.href = imgData;
            link.download = "screenshot.png";
            link.click();
          });
        });
    </script>
  </body>
</html>
