看了半天看
因為手機端是沒有mouse = =
this.canvas.onmousedown = function (e) { _this.downEvent(e)};
this.canvas.onmousemove = function (e) { _this.moveEvent(e)};
this.canvas.onmouseup = function (e) { _this.upEvent(e)};
this.canvas.onmouseout = function (e) { _this.upEvent(e)};
改為-->
this.canvas.addEventListener('touchstart', function (e) { _this.downEvent(e)});
this.canvas.addEventListener('touchmove', function (e) { _this.moveEvent(e)});
this.canvas.addEventListener('touchend ', function (e) { _this.upEvent(e)});
試一下~ ps:因為我現在沒有服務器測不了~