Base64格式文件上传 文章目录 Base64格式文件上传 编写js代码 java代码 # html页面 <label class="btn btn-success col fileinput-button mb-3"> <i class="fas fa-plus"></i> <span>选择头像</span> <!-- 给input标签绑定change事件 --> <input type="file" style="display: none" @change="chooseFile"> </label> <img :src