var canvas1 = document.getElementById("canvas1"); var ctx = canvas1.getContext("2d"); ctx.lineWidth = 10; ctx.strokeStyle = "blue"; canvas1.onmousemove=function(e){ ctx.lineTo(e.clientX, e.clientY); ctx.stroke(); }
canvas实现画板
猜你喜欢
转载自blog.csdn.net/weixin_42203183/article/details/88562519
今日推荐
周排行