![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
PriestLeo
学以思,思以用,用不足,复学
展开
-
js获取文件流并保存
Ajax貌似处理不了文件流。可以用以下方法(示例为pdf):var xmlResquest = new XMLHttpRequest();xmlResquest.open(“POST”, $u.getRootPath() + docarr[0], true);xmlResquest.setRequestHeader(“Content-type”, “application/pdf”);xm...原创 2019-02-19 11:18:57 · 4243 阅读 · 0 评论 -
input上传文件自定义样式
用label的for属性,自定义label样式即可<label class="btn btn-info" for="uploadfile">上传文件<i class="fa fa-plus" aria-hidden="true"></i></label><input type="file" id="uploadfile" style=...原创 2019-04-23 14:25:25 · 516 阅读 · 0 评论