var url = "car.png" //图片的路径
var img = new Image();
img.src = url;
img.onload = function() {
console.log(getBase64(img,'AAAA'));
console
使用canvas将图片+文字转成base64格式的图片
最新推荐文章于 2024-05-20 10:13:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
var url = "car.png" //图片的路径
var img = new Image();
img.src = url;
img.onload = function() {
console.log(getBase64(img,'AAAA'));
console