jm_p_op
.html Response(django to js(html)) db send 본문
views.py
data="데이터 백에서 프론트로 주기"
Response({"message":data}, status=status.HTTP_200_OK)
get.js
const data = await response.json()
console.log(data)
console.log(response["message"])'Front > html' 카테고리의 다른 글
| HTML-css,js,image 파일 분리 연결 (0) | 2023.03.14 |
|---|