效果如图自动绘制不停歇 代码如下 var canvas = document.getElementById('myCanvas'),width = canvas.width,height = canvas.height; var step,startAngle,endAngle,add=Math.PI*2/100; counterClockwise = false; var isDrawOver=true; var x1=Math.floor(200+100);//设置默认圆心X轴 var y1…
话不多少,直接上代码 function fileChange() { var file = this.files[0]; var imageType = /^image\//; //是否是图片 if (!imageType.test(file.type)) { layAlert("请选择图片!"); loadHide() return; } //判断是否已经上传 var fileState = false; var fileImgs = document.querySelectorAl…