Frontend/進階_React框架/demo/api_demo
Lin Weiting ee288c8211 aa
2025-02-10 18:51:41 +08:00
..
src update APItest Demo 2025-02-10 18:49:34 +08:00
.gitignore update APItest Demo 2025-02-10 18:49:34 +08:00
eslint.config.js update APItest Demo 2025-02-10 18:49:34 +08:00
index.html update APItest Demo 2025-02-10 18:49:34 +08:00
package-lock.json update APItest Demo 2025-02-10 18:49:34 +08:00
package.json update APItest Demo 2025-02-10 18:49:34 +08:00
README.md aa 2025-02-10 18:51:41 +08:00
tsconfig.app.json update APItest Demo 2025-02-10 18:49:34 +08:00
tsconfig.json update APItest Demo 2025-02-10 18:49:34 +08:00
tsconfig.node.json update APItest Demo 2025-02-10 18:49:34 +08:00
vite.config.ts update APItest Demo 2025-02-10 18:49:34 +08:00

使用步驟

cd api_demo
npm install
npm run dev

api測試

一個table表對應一個ts檔定義api呼叫方式在一個class將這些ts檔放在api資料夾內
index.ts將這些class整理起來並實例化export給前端tsx用