canvas绘制为什么用save,restore
ctx1.save(); ctx1.drawImage(this.bigEye,this.x+15,this.y+18); ctx1.drawImage(this.bigBody,this.x,this.y); ctx1.drawImage(this.bigTail,this.x+40,this.y+5); ctx1.restore();
canvas绘制为什么用save,restore?
还有我的drawImage(this.bigEye,this.x+15,this.y+18);
参数这样写合适吗,会不会不同尺寸的浏览器显示不一样了?