已采纳回答 / zhang77
写成这样在init里面调用就行了function drawBackground() { bgPic.onload=function(){ ctx2.drawImage(bgPic,0,0,canWidth,canHeight); }}
2016-07-08