最新回答 / zyz_tm
ctx2.drawImage(this.orange,this.x[i]-this.l[i]*0.5,this.y[i]-this.l[i]*0.5,this.l[i],this.l[i]);把this.orange改成pic
2016-07-15
已采纳回答 / zhang77
写成这样在init里面调用就行了function drawBackground() { bgPic.onload=function(){ ctx2.drawImage(bgPic,0,0,canWidth,canHeight); }}
2016-07-08