var img=new Image(); img.src="http://localhost:8000/db/anchor.png"; ctx.drawImage(img,-6.5 + (ring[0].x - box.x) * sc, -23 + canvas.height - (ring[0].y - box.y) * sc);
它外面是个for循环
如果里面加个img.onload即可在chorme响应 本来for循环是画4个图形的,但只能画出最后一个
var img=new Image(); img.src="http://localhost:8000/db/anchor.png"; ctx.drawImage(img,-6.5 + (ring[0].x - box.x) * sc, -23 + canvas.height - (ring[0].y - box.y) * sc);
它外面是个for循环
如果里面加个img.onload即可在chorme响应 本来for循环是画4个图形的,但只能画出最后一个