fnction getImageData(img) {
var canvas = document.createElement("canvas")
canvas.width = img.width
canvas.height = img.height
var ctx = canvas.getContext("2d")
ctx.drawImage(img, 0, 0)
var imgd = canvas.toDataURL("image/png")
return imgd
}
.....
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)