在电脑模拟器上面可以正常画,在我安卓手机上面显示不出来画线,什么原因?

发布于 7 年前作者 jie563701 次浏览最后编辑 7 年前来自 ask

       ctx.beginPath();

       ctx.moveTo(StartX+i*SIZE, StartY+j*SIZE);

       ctx.lineTo(StartX + i * SIZE + SIZE, StartY+j*SIZE);

       ctx.lineTo(StartX + i * SIZE + SIZE, StartY + j * SIZE + SIZE);

       ctx.lineTo(StartX + i * SIZE, StartY + j * SIZE + SIZE)

       ctx.closePath();

       ctx.stroke();

在电脑模拟器上面可以正常画,在我安卓手机上面显示不出来画线,什么原因?

0 回复
暂无回复