728x90
반응형
xhr jsonarray spring
-
javascript xhr // spring // jsonarray Data 전송Spring 2021. 5. 4. 11:13
let formdata = new FormData(); formdata.enctype='multipart/form-data'; formdata.method='post'; formdata.append('data',JSON.stringify(this.bookList)); formdata.append('deleteCount',this.deleteCount); const xhr = new XMLHttpRequest(); xhr.open("post", "/draw/data/updateInfoBookData.do", true); xhr.onreadystatechange = function() { //폴백 if (xhr.readyState == 4) { if (xhr.status == 200) { //200은 잘넘어..