英文文档:https://github.com/axios/axios
参考:https://www.jb51.net/article/123485.htm
英文文档:https://github.com/axios/axios
参考:https://www.jb51.net/article/123485.htm
上传文件时,有时候会碰到需要额外传递一些参数,显示上传的进度之类,这里分享下之前做过的一些处理。vue里一般上传文件会用到一些组件,本次使用的是el-upload,这里只是介绍一种思路, 其他的组件类似,有碰到类似问题的,欢迎探讨。 前端小白,涉及到的代码可能会有点粗糙,欢迎来喷。一开始在demo的时候,直接用的axios,按照官方的文档,还是比较顺利的。不过一般vue项目里里都会封装一个ht
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M