delete
-
Axios HTTP ๋ฉ์๋
HTTP ๋ฉ์๋๋ค์ด๊ฐ๋ฉฐAxios์ ํจ๊ป HTTP ๋ฉ์๋์ ๋ํด ์ ๋ฆฌํด๋ณธ๋ค. HTTP ๋ฉ์๋๊ฐ๋ HTTP(Hypertext Transfer Protocol) ๋ฉ์๋๋ ์น ์๋ฒ์์ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๊ฑฐ๋ ์์ ํ๊ฑฐ๋ ์ญ์ ํ๋ ๋ฑ์ ์์ ์ ์ํํ ๋ ์ฌ์ฉํ๋ ๋ฉ์๋์ด๋ค.์์ฃผ ์ฌ์ฉ๋๋ ๋ฉ์๋๋ก๋ GET, POST, PATCH, DELETE๊ฐ ์์ผ๋ฉฐ, fetch() ๋๋ Axios ๋ฑ์ ์ด์ฉํ์ฌ ์ด๋ฌํ ์์ฒญ์ ๋ณด๋ผ ์ ์๋ค. ์ข ๋ฅโ GET์๋ฒ์์ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๋ ๋ฐ ์ฌ์ฉ๋๋ค.์ฃผ๋ก ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ ์ ๋ณด๋ฅผ ์กฐํํ๊ฑฐ๋, ์น ํ์ด์ง๋ฅผ ์ฝ๊ฑฐ๋, ํ์ผ์ ๋ค์ด๋ก๋ํ ๋ ์ฌ์ฉ๋๋ค.try { const response = await axios.get('/api/data'); console.log(response.data);} ..
1 2024.09.21 -
PyQt ๊ฐ๋จํ CRUD(Create, Read, Update, Delete) ํ๋ก๊ทธ๋จ
๊ฐ๋จํ CRUD(Create, Read, Update, Delete) ํ๋ก๊ทธ๋จ ๋ค์ด๊ฐ๋ฉฐ PyQt5๋ก ๊ฐ๋จํ CRUD(Create, Read, Update, Delete) ๊ธฐ๋ฅ์ ์ํํ ์ ์๋ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด๋ณด์. ์ฝ๋ QTextEdit ์์ ฏ์ ์ด์ฉํ์ฌ CRUD ๊ธฐ๋ฅ์ ์ํํ ์ ์๋ ๋ฉ๋ชจ์ฅ๊ณผ ๋น์ทํ ํ๋ก๊ทธ๋จ์ด๋ค. import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QTextEdit, QAction, QFileDialog class TextEditor(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.textEdit = QT..
0 2023.07.18