html 页面
先判断数据库中是否有头像,如果有则显示出来(selectUserHeadIcon.do)
没有这默认显示一个图片
<div id="MyheadIcon" class="flag" style="display: none;">
<div class="title">
我的头像
</div>
<div style="width: 300px;">
<div style="margin-top: 40px; text-align: center;">
<div class="file" style="width: 100px; height: 100px;" id="dvFile" >
<c:if test="${not empty icons}">
<img id="uploadPreview" style="width: 100px; height: 100px; border-radius: 100px;" src="${ctx}/selectUserHeadIcon.do" alt="User Image">
</c:if>
<c:if test="${empty icons}">
<img id="uploadPreview" style="width: 100px; height: