Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

作業

hw1:SPA 部落格

在這個作業中,我們要把上一週的部落格範例變得更完整一點,請你加入以下功能:

  1. 美化部落格主頁
  2. 美化部落格文章頁面
  3. 使用 React Router
  4. 串接 API

API 格式:

endpoint:https://qootest.com
使用說明:https://github.com/typicode/json-server

GET     /posts 取得所有 post
GET     /posts/:id 取得某個 post

hw2:簡答題

  1. React Router 背後的原理你猜是怎麼實作的?
  2. SDK 與 API 的差別是什麼?
  3. 在用 Ajax 的時候如果不是同源,預設是不會把 Cookie 帶上的,要怎麼樣才能把 Cookie 一起帶上?