这里添加了图片位置,drawImage方法中有清除画布的方法,会把图片清楚掉,只能看到图片一闪而逝

发布于 6 年前作者 hjiang2613 次浏览最后编辑 6 年前来自 issues
const image  wxcreateImage
const imgX  canvaswidth 50
let imgY 500
image.onload = function{
  context.drawImage(image,imgX,imgY)
}
image.src = 'img/plane.png'
2 回复
guiyingliu
guiyingliu1 楼6 年前
mchen
mchen2 楼4 年前

加个定时清除