如果页面上加载的图片路径不存在,则显示默认图片
< img :src=“functionary.imgPath”
onerror = " this . src=‘默认头像地址’;
this. onerror = null"
alt=“用户头像” >
如果页面上加载的图片路径不存在,显示默认图片
猜你喜欢
转载自blog.csdn.net/qq_44866462/article/details/88973377
今日推荐
周排行