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
→
08/25 14:54,
4年前
, 1F
08/25 14:54, 1F
→
08/25 22:22,
4年前
, 2F
08/25 22:22, 2F