作者powermaxman (小e)
看板Ajax
标题[问题] formdata 无法append资料
时间Mon Jun 9 19:51:14 2014
请问版上各位高手
在HTML5内开始可以使用FormData来append资料给xhr物件上传
不过小弟在试的时候无论怎麽append('name',string)
用chrome的开发者工具console看内容却都是空的没有append内容
GOOGLE爬了一堆文都讲得非常容易,没想到让我卡了一个下午
这网址是小弟参考的资料来源
https://developer.mozilla.org/zh-CN/docs/Web/Guide/Using_FormData_Objects
请问这功能到底该如何使用呢?
感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.163.13.215
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Ajax/M.1402314677.A.081.html
1F:→ foreverangle:你有实际送到後端吗?还是你想取得formData的资料 06/09 21:45
2F:→ nhlsi:chrome console看不到formData append的内容是正常的 06/24 01:03