context.isPointInPath(x, y);
this.inCtx.beginPath();
this.inCtx.arc(100, 100, 50, 0, 2 * Math.PI, false);
console.log(this.inCtx.isPointInPath(100, 100));
this.inCtx.closePath();
这段代码在开发这工具中输出true,在真机中却输出false;费解!求高手解惑!感谢!
this.inCtx.beginPath();
this.inCtx.arc(100, 100, 50, 0, 2 * Math.PI, false);
console.log(this.inCtx.isPointInPath(100, 100));
this.inCtx.closePath();
这段代码在开发这工具中输出true,在真机中却输出false;费解!求高手解惑!感谢!