<image class='img' src='{{imgSrc1 + imgSrc2}}' mode='widthFix'></image> let length = res.length; _this.setData({ imgSrc1: 'data:image/png;base64,' + res.substring(0, Math.ceil(length / 2)) }); _this.setData({ imgSrc2: res.substring (Math.ceil(length / 2)) }); 转载:https://www.cnblogs.com/wuyoucao/p/7567727.html