作者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/m.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