//add headers
this.$http.post('/api', data, {
headers: {
'Content-Type': 'multipart/form-data'
}
}) //or send request data as application/x-www-form-urlencoded content type.
this.$http.post('/api', data, {
emulateJSON: true
}) //or use FormData
var formData = new FormData();
formData.append('foo', 'bar'); this.$http.post('/api', formData)

出处:https://github.com/pagekit/vue-resource/issues/267

最新文章

  1. 12.3 Arithmetic-software-
  2. 关于datatime 时间处理模块:
  3. 关于margin的问题
  4. Linux 学习笔记(一) 入门
  5. Winform开发框架中实现多种数据库类型切换以及分拆数据库的支持
  6. wpf 保存控件中的内容为图片格式
  7. C++常用的#include头文件总结
  8. OpenJudge/Poj 1915 Knight Moves
  9. LAMP网站架构方案分析
  10. [翻译]Go语言调度器
  11. Duanxx的STM32学习:NVIC操作
  12. maven入门(上)
  13. 修炼dp( 2 )
  14. 第45篇 js操作打开本地程序
  15. C#开发Open-Webkit-Sharp浏览器并支持前端alert显示
  16. 【译】9. Java反射——泛型
  17. Python 基于python实现单例模式
  18. json中获取key值
  19. JAVA中拆箱和装箱
  20. Oracle数据类型与.NET中的对应关系

热门文章

  1. UVALive 3938 Ray, Pass me the dishes! (动态最大连续和)
  2. VS开发软winform软件的更改用户使用权限
  3. CPP-STL:vector中的size和capacity
  4. 【胎教】做AI的基础,开始学习。
  5. Vue 后台管理
  6. npm 安装插件失败
  7. ValidForm验证表单
  8. 【linux】【指令集】查看是否打开selinux
  9. 【全面】Linux基础知识和基本操作语句大全(一)
  10. eclipse使用技巧的网站收集——转载(三)