首页 > TAG信息列表 > Base64Val

图片上传转换成Base64,然后再转成 file 提交给后端

图片上传代码转换成Base64 <input type="file" name="upimg" id='upimg'> <script> window.onload = () => { let upDOM = document.getElementById('upimg') upDOM.addEventListener('change', (e) =>