Skip to content

Instantly share code, notes, and snippets.

@kaochenlong
Last active December 3, 2021 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaochenlong/e84a1f2a96638bde203fb7d293650eb5 to your computer and use it in GitHub Desktop.
Save kaochenlong/e84a1f2a96638bde203fb7d293650eb5 to your computer and use it in GitHub Desktop.

JavaScript API 串接

Q1. 以下是 API 規格

API Endpoint: https://buibui.5xcampus.com

HTTP Request Header

Content-Type: application/json
Latitude: 你的緯度
Longitude: 你的經度
Message: 隨意字串

GET /api/v1/bus_stations/search?keyword=衡陽

請使用 fetch 取得並印出站牌名稱

React

Q2. 請簡介 useEffect 的生命週期

Q3. 使用客製化 hooks 製作倒數計時器

繳交方式:

請使用 Codepen 平台進行作答,完成後連同個人履歷(包括 GitHub 帳號及其它相關作品)email 至 hr@5xcampus.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment