$.ajaxSettings.traditional = true
$.ajaxSettings.traditional = true; 설정 없이 데이터를 보내면 아래와 같은 형태이다.
userId[]:aa13
userId[]:aa14
위의 코드 설정후 데이터를 보내면 아래와 같이 간다.
userId:aa13
userId:aa14
'백엔드 > Nodejs' 카테고리의 다른 글
Nodejs tutorial (0) | 2018.05.15 |
---|---|
ajax json nodejs 데이터 주고받을때 일어난 이슈 (0) | 2018.05.10 |
express.js 라우트 요청 객체(req), 응답 객체(res) 정리 (0) | 2018.05.10 |