<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <canvas id="cv" width="500px" height="500px" style="border: 1px solid red;"></canvas> <script> let canvas=document.getElementById('cv') let ctx = canvas.getContext('2d') let canMove = false canvas.onmousedown = function(e){ canMove = true ctx.moveTo(e.pageX - canvas.offsetLeft,e.pageY - canvas.offsetTop) ctx.beginPath() } window.onmouseup = function(){ canMove = false ctx.closePath() } canvas.onmousemove = function(e){ if (canMove) { ctx.lineTo(e.pageX - canvas.offsetLeft,e.pageY - canvas.offsetTop) ctx.stroke() } } </script> </body> </html>
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
阅读和此文章类似的: 全球云计算