Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
axios上传文件
2019-11-14 07:46:24
29
0
0
admin
### axios Content-Type: multipart/form-data(上传文件) let formData = new FormData(); formData.append('appkey', 'njssdjtkj'); formData.append('sign', sign); formData.append('sign_method', "MD5"); formData.append('mobile', "15951971791"); formData.append('engine_no', "070939"); formData.append('plate_type', "02"); formData.append('plate_no', "苏EXW365"); axios({ method: 'post', url: '/api/search.do', data:formData, //:{appkey: "njssdjtkj",sign:sign,sign_method:"MD5",timestamp:time,mobile:"15951971791",engine_no:"070939",plate_type:"02",plate_no:"苏EXW365"}, headers: { 'Content-Type': 'multipart/form-data' } }) .then(function (res) { console.log(res) })
Pre:
react ref(父组件访问子组件, 除了props)
Next:
react常用npm插件
0
likes
29
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.