or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Huli - 用 API mocking 讓前端不再苦苦等待
歡迎來到 JSDC 2020 上半場 | 道場 (09:00 ~ 12:00) 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →共筆入口:https://hackmd.io/UuG6jn4zR-GfDFGcgVJc-Q
點選主題就可以進到個別場次的共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →tags:
jsdc2020
,上半場 - 道場
現在常見的前後端分離
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →該怎麼處理前端必須等待後端 API 好了才可以接的狀況?
如果後端連 interface 都還沒訂好!
無解…(通靈)
後端 API 還沒好的幾個方法
MSW (Mock Service Worker)
特點
設定步驟
好處
缺點
MirageJS
特點
好處
缺點
Q: mocking 的 interface 是由前端還是後端訂定?
網友A:誰大聲誰贏
網友B:先開先贏
Q: mirage.js 跟自己寫變數的差別在哪?
mirage 提供內建 ORM 幫你快速做這件事
投影片 https://drive.google.com/file/d/1OOV55pClWtNBBM7StU7wepH39-UZb0lM/view
demo 網址 https://github.com/aszx87410/api-mocking-demo-app