개발 스크랩/Node.js
[Node.js] POST 통신 예제
inkyoung
2023. 7. 4. 14:38
02. Node js POST 통신 예제
안녕하세요. 오늘은 홈페이지에서 특정 버튼이 눌렸을 때 서버가 응답할 수 있도록, 홈페이지에서 POST 요청을 하면 서버에서 해당 POST 요청을 처리하는 예제를 가져왔습니다. 간단하게 버튼이
devhyeon.tistory.com
[Node.js] json 활용한 Ajax 처리
✱HTML 파일 email: ajaxsend ✱JS 파일 // ajaxsend 버튼 이벤트 등록 document.querySelector('.ajaxsend').addEventListener('click', function() { const inputdata = document.forms[0].elements[0].value; sendAjax('http://127.0.0.1:3000/ajax_send_emai
codingsalon.tistory.com