uni-app版本2.7.14.20200618
在js中通过require() 引入图片(图片大小不能超过3kb)
{img:require('@/static/xmkysc.png')},
在html中通过相对路径引入(绝对路径打包后图片不显示)
<image class="img" src="../../static/banner.png" mode="" ></image>
uni-app版本2.7.14.20200618
在js中通过require() 引入图片(图片大小不能超过3kb)
{img:require('@/static/xmkysc.png')},
在html中通过相对路径引入(绝对路径打包后图片不显示)
<image class="img" src="../../static/banner.png" mode="" ></image>