摘要: 一、首先html部分 <div class="avatar"> <img :src="docUrl ? docUrl : default_img" alt /> </div> 二、在JS中,根据请求回来的数据是null:{}或者有数据来判断头像显示,并引入本地静态图片 <script> export 阅读全文
posted @ 2020-05-11 10:42 夏小夏吖 阅读(1891) 评论(0) 推荐(1)
摘要: 一、关于js常用的代码片段 { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add com 阅读全文
posted @ 2020-05-11 10:17 夏小夏吖 阅读(2979) 评论(1) 推荐(4)