05 2021 档案
摘要:修改原生Input 的 file输入框的样式 此处使用了障眼法用以实现与element的相同样式 1.在HTML中使用时可以通过input的label进行快捷的输入框调用 <div> <label for="file" style="position: absolute;"> <div class=
阅读全文
摘要:原生input 类型为file时需要对不同参数做出调整 <input type="file" name="file" id="file" accpet=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocume
阅读全文
摘要:今天在项目中遇到需要前端同时使用query string 和 form data 的post接口,首先我们要知道 Formdata的传参 首先在页面使用原生方法进行文件的上传 html部分 <input type="file" name="" id="file"> js部分 function upl
阅读全文

浙公网安备 33010602011771号