看板 Ajax 關於我們 聯絡資訊
Vue : let oParams = { sTest : this.sTest //test test aTest: this.aTest //[1,2,3,4] }; this.axios.post('/user/postUser', oParams, oResponse => { ... }); Server : sTest = 'test test' 沒問題 可是後端收到的 aTest 卻是 string "1,2,3,4" 想請問各位先進大大們知道原因嗎?? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.173.235.198 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1566714295.A.DAF.html
pkro12345: 沒parse成json吧 08/25 14:54
satanbaby: 你後端的code呢 08/25 22:22