Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- typescript #constructor #class #public #private
- git vscode
- typescript #react #jsx #component #usestate
- typescript #class #extends #public #private #protected #static
- connect-mongo
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- typescript #unknown
- updatemany
- github#githubpages#빈화면#basename
- insertone
- __dirname
- sendFile
- updateone
- github#로컬저장소#원격저장소
- Passport
- TypeScript #문법
- expess
- 정적 페이지
- deserializeUser
- serializeUser
- github#githubpages#gh-pages#deploy
- react#로스트아크#mbti#테스트
- mongodb 입출력
- ejs 문법
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- GitHub Actions
- Promise #async #await #try #catch
- CSS
- e.target
- typescript #import #export #*
Archives
- Today
- Total
목록query string (1)
VaIice의 이야기
[Node.js] 서버로 데이터 보내기, 게시글 삭제 만들기
1. 주소창, , 사용하면 새로고침 2. ajax - fetch 새로고침 없이 API 요청 가능 body 안에 전송 3. URL 파라미터 fetch(`/delete/`, { 4. query string fetch(`/delete?id=`, { method: 'DELETE', headers : { 'Content-Type' : 'application/json' } ?변수=값&변수=값 서버에서 request.query로 사용 5. 삭제 코드 // server.js app.delete('/delete/:id', async (request, response) => { try { await db.collection('..
[Node.js]
2024. 7. 16. 17:03