代码片段:varcan=document.getElementById("myCanvas");varwidth=can.width;varheight=can.height;varctx=can.getContext("2d");varimg=newImage();img.src="img/owl.jpg";varsecondMusic=document.getElementById("secondMusic");