Video není dostupné.
Omlouváme se.
Vue JS 3 #29 Lấy và thêm mới dữ liệu từ API
Vložit
- čas přidán 30. 06. 2024
- Nội dung video
- Cài đặt server api với json-server()
(Sau khi cài đặt json-server thành công, chúng ta có thể thao tác lấy, thêm mới, câp nhật, xóa dữ liệu thông qua api từ server api này)
- Giới thiệu một số url api
- Cài đặt thư viện axios
- Trong Vue.js 3, Axios thường được sử dụng để gọi API và lấy dữ liệu từ server.
- npm install axios
- Ví dụ lấy dữ liệu từ api
- Ví dụ thêm mới dữ liệu từ api