小程序官方API:https://developers.weixin.qq.com/miniprogram/dev/component/image.html
1:加载本地文件夹图片
<image src="/image/pig.jpg" mode="aspectFill">
</image>
2:加载服务器图片
wxml:
小程序官方API:https://developers.weixin.qq.com/miniprogram/dev/component/image.html
<image src="/image/pig.jpg" mode="aspectFill">
</image>
wxml: