使用鼠标绘制canvase图形functionmousedownHandler(event){if(event.button==0&&!flag){points.push({x:event.pageX-cvsClientRect.x,y:event.pageY-cvsClientRect.y});console.log(points)if(points.length>=1){cvs.a