app.delete('/delete', function(요청, 응답){
요청.body._id = parseInt(요청.body._id)
db.collection('post').deleteOne(요청.body, function(에러, 결과){
console.log('삭제완료')
})
응답.send('삭제완료')
});
서버에는 이렇게 적었고 list에서 삭제 버튼을 눌러도 반응은 없는데
리스트 페이지 새로고침하면
{ _id: 1, '할일': '자기', '날짜': '1125' },
{ _id: 2, '할일': '쉬기', '날짜': '1125' },
{ _id: 3, '할일': '임시', '날짜': '1128' },
{ _id: 4, '할일': '임시2', '날짜': '1129' }
요렇게 출력되요