From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/glossary/routers/index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 files/zh-tw/glossary/routers/index.html (limited to 'files/zh-tw/glossary/routers/index.html') diff --git a/files/zh-tw/glossary/routers/index.html b/files/zh-tw/glossary/routers/index.html new file mode 100644 index 0000000000..016a3c1c32 --- /dev/null +++ b/files/zh-tw/glossary/routers/index.html @@ -0,0 +1,29 @@ +--- +title: Routers +slug: Glossary/routers +translation_of: Glossary/routers +--- +

routers 是指路由器。在 Web 有兩種意思:

+ +
    +
  1. 針對網路層,路由器是一種決定{{Glossary('封包')}}去向的網路設備。路由器是由 retailer 分發,允許用戶與網際網路互動。
  2. +
  3. 針對應用層的 {{Glossary('SPA')}},路由器是一種透過給定的 {{Glossary('URL')}} 來決定頁面如何呈現的函式庫。這個中間件(middleware)會藉由給定 URL 給檔案生成需要的路徑、以渲染下一頁的所需內容。
  4. +
+ +

了解更多

+ +

一般知識

+ +

針對網路層:

+ + + +

針對應用層,訪間熱門的 SPA 框架都有自己的路由器函式庫:

+ + -- cgit v1.2.3-54-g00ecf