-
網站功能: 串接其他網站的API並且利用React技術做出一個圖片搜尋網站, 使用者可以輸入關鍵字來搜尋相關圖片
-
網站版面:
-
技術細節:
- 串接API
- 使用React框架達到SPA(sigle-page-application)的效果 使用 AJAX技術,我們可以編寫一些在瀏覽器上運行的 JavaScript。JavaScript 將向伺服器發出request ,接收response並使用新數據更新當前 HTML 頁面。 整個過程中, 只有數據通過網絡傳輸,而不是一個全新的 HTML 頁面
- 利用Axios來寄送http request, 可以直接獲取的資料使用, 不用再將資料.json, 如此一來在資料的處理上比較方便
-
Website Functionality: Integrating APIs from other websites and utilizing React technology to create an image search website. Users can enter keywords to search for related images.
-
Website Layout:
-
Technical Details:
- API Integration
- Using the React framework to achieve the SPA (single-page application) effect. Using AJAX technology, we can write JavaScript that runs in the browser. JavaScript will send requests to the server, receive responses, and update the current HTML page with new data. During this entire process, only data is transmitted over the network, not an entirely new HTML page.
- Using Axios to send HTTP requests, directly accessing data without needing to parse it as .json. This makes data handling more convenient.




