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/404/index.html | 16 ++++ files/zh-tw/glossary/502/index.html | 20 +++++ files/zh-tw/glossary/abstraction/index.html | 14 ++++ files/zh-tw/glossary/accessibility/index.html | 31 +++++++ files/zh-tw/glossary/adobe_flash/index.html | 28 +++++++ files/zh-tw/glossary/ajax/index.html | 25 ++++++ files/zh-tw/glossary/algorithm/index.html | 6 ++ files/zh-tw/glossary/api/index.html | 34 ++++++++ files/zh-tw/glossary/apple_safari/index.html | 27 ++++++ files/zh-tw/glossary/argument/index.html | 24 ++++++ files/zh-tw/glossary/aria/index.html | 17 ++++ files/zh-tw/glossary/arpa/index.html | 18 ++++ files/zh-tw/glossary/arpanet/index.html | 17 ++++ files/zh-tw/glossary/array/index.html | 31 +++++++ files/zh-tw/glossary/ascii/index.html | 16 ++++ files/zh-tw/glossary/asynchronous/index.html | 19 +++++ files/zh-tw/glossary/atag/index.html | 24 ++++++ files/zh-tw/glossary/attribute/index.html | 18 ++++ files/zh-tw/glossary/bandwidth/index.html | 16 ++++ files/zh-tw/glossary/blink/index.html | 20 +++++ files/zh-tw/glossary/block/css/index.html | 22 +++++ files/zh-tw/glossary/block/index.html | 13 +++ files/zh-tw/glossary/boolean/index.html | 52 ++++++++++++ files/zh-tw/glossary/bootstrap/index.html | 16 ++++ files/zh-tw/glossary/browser/index.html | 24 ++++++ files/zh-tw/glossary/browsing_context/index.html | 22 +++++ files/zh-tw/glossary/buffer/index.html | 17 ++++ files/zh-tw/glossary/cache/index.html | 14 ++++ files/zh-tw/glossary/cacheable/index.html | 59 +++++++++++++ files/zh-tw/glossary/callback_function/index.html | 36 ++++++++ files/zh-tw/glossary/canvas/index.html | 34 ++++++++ files/zh-tw/glossary/character/index.html | 22 +++++ files/zh-tw/glossary/character_encoding/index.html | 25 ++++++ files/zh-tw/glossary/character_set/index.html | 30 +++++++ files/zh-tw/glossary/chrome/index.html | 8 ++ files/zh-tw/glossary/cipher_suite/index.html | 25 ++++++ files/zh-tw/glossary/ciphertext/index.html | 18 ++++ files/zh-tw/glossary/class/index.html | 22 +++++ files/zh-tw/glossary/closure/index.html | 23 +++++ files/zh-tw/glossary/cms/index.html | 14 ++++ files/zh-tw/glossary/compile/index.html | 23 +++++ files/zh-tw/glossary/compile_time/index.html | 19 +++++ .../zh-tw/glossary/computer_programming/index.html | 20 +++++ files/zh-tw/glossary/constructor/index.html | 41 +++++++++ files/zh-tw/glossary/continuous_media/index.html | 11 +++ files/zh-tw/glossary/cookie/index.html | 21 +++++ files/zh-tw/glossary/cors/index.html | 49 +++++++++++ files/zh-tw/glossary/crawler/index.html | 12 +++ files/zh-tw/glossary/crud/index.html | 14 ++++ files/zh-tw/glossary/cryptography/index.html | 20 +++++ files/zh-tw/glossary/csp/index.html | 25 ++++++ files/zh-tw/glossary/csrf/index.html | 23 +++++ files/zh-tw/glossary/css/index.html | 49 +++++++++++ files/zh-tw/glossary/css_pixel/index.html | 24 ++++++ files/zh-tw/glossary/css_preprocessor/index.html | 26 ++++++ files/zh-tw/glossary/css_selector/index.html | 60 +++++++++++++ files/zh-tw/glossary/cssom/index.html | 18 ++++ files/zh-tw/glossary/data_structure/index.html | 14 ++++ files/zh-tw/glossary/developer_tools/index.html | 29 +++++++ files/zh-tw/glossary/dhtml/index.html | 7 ++ files/zh-tw/glossary/dns/index.html | 18 ++++ files/zh-tw/glossary/doctype/index.html | 22 +++++ files/zh-tw/glossary/document_directive/index.html | 35 ++++++++ files/zh-tw/glossary/dom/index.html | 29 +++++++ files/zh-tw/glossary/domain/index.html | 16 ++++ files/zh-tw/glossary/domain_name/index.html | 18 ++++ files/zh-tw/glossary/dos_attack/index.html | 34 ++++++++ files/zh-tw/glossary/ecma/index.html | 20 +++++ files/zh-tw/glossary/ecmascript/index.html | 22 +++++ files/zh-tw/glossary/element/index.html | 20 +++++ files/zh-tw/glossary/empty_element/index.html | 33 ++++++++ files/zh-tw/glossary/engine/index.html | 17 ++++ files/zh-tw/glossary/event/index.html | 24 ++++++ files/zh-tw/glossary/firefox_os/index.html | 23 +++++ files/zh-tw/glossary/firewall/index.html | 20 +++++ .../zh-tw/glossary/first-class_function/index.html | 98 ++++++++++++++++++++++ .../glossary/first_contentful_paint/index.html | 15 ++++ files/zh-tw/glossary/first_cpu_idle/index.html | 6 ++ files/zh-tw/glossary/first_input_delay/index.html | 15 ++++ files/zh-tw/glossary/ftp/index.html | 20 +++++ files/zh-tw/glossary/git/index.html | 15 ++++ files/zh-tw/glossary/grid/index.html | 71 ++++++++++++++++ files/zh-tw/glossary/hash/index.html | 17 ++++ files/zh-tw/glossary/head/index.html | 19 +++++ files/zh-tw/glossary/hoisting/index.html | 72 ++++++++++++++++ files/zh-tw/glossary/host/index.html | 20 +++++ files/zh-tw/glossary/html/index.html | 51 +++++++++++ files/zh-tw/glossary/html5/index.html | 16 ++++ files/zh-tw/glossary/http/index.html | 13 +++ files/zh-tw/glossary/identifier/index.html | 19 +++++ files/zh-tw/glossary/iife/index.html | 69 +++++++++++++++ files/zh-tw/glossary/immutable/index.html | 22 +++++ files/zh-tw/glossary/index.html | 25 ++++++ files/zh-tw/glossary/indexeddb/index.html | 20 +++++ files/zh-tw/glossary/ip_address/index.html | 21 +++++ files/zh-tw/glossary/jank/index.html | 6 ++ files/zh-tw/glossary/java/index.html | 23 +++++ files/zh-tw/glossary/javascript/index.html | 41 +++++++++ files/zh-tw/glossary/jpeg/index.html | 14 ++++ files/zh-tw/glossary/jquery/index.html | 42 ++++++++++ files/zh-tw/glossary/json/index.html | 29 +++++++ files/zh-tw/glossary/key/index.html | 20 +++++ files/zh-tw/glossary/keyword/index.html | 19 +++++ files/zh-tw/glossary/ligature/index.html | 16 ++++ files/zh-tw/glossary/localization/index.html | 63 ++++++++++++++ files/zh-tw/glossary/mathml/index.html | 23 +++++ files/zh-tw/glossary/mime_type/index.html | 32 +++++++ files/zh-tw/glossary/mvc/index.html | 28 +++++++ files/zh-tw/glossary/node.js/index.html | 22 +++++ files/zh-tw/glossary/null/index.html | 26 ++++++ files/zh-tw/glossary/number/index.html | 27 ++++++ files/zh-tw/glossary/object/index.html | 18 ++++ files/zh-tw/glossary/oop/index.html | 15 ++++ files/zh-tw/glossary/opera_browser/index.html | 21 +++++ files/zh-tw/glossary/parameter/index.html | 38 +++++++++ files/zh-tw/glossary/php/index.html | 55 ++++++++++++ files/zh-tw/glossary/png/index.html | 17 ++++ files/zh-tw/glossary/pop/index.html | 22 +++++ files/zh-tw/glossary/port/index.html | 23 +++++ files/zh-tw/glossary/presto/index.html | 18 ++++ .../glossary/progressive_enhancement/index.html | 14 ++++ files/zh-tw/glossary/property/index.html | 13 +++ .../zh-tw/glossary/property/javascript/index.html | 22 +++++ files/zh-tw/glossary/protocol/index.html | 21 +++++ files/zh-tw/glossary/prototype/index.html | 16 ++++ files/zh-tw/glossary/pseudo-element/index.html | 16 ++++ files/zh-tw/glossary/python/index.html | 33 ++++++++ files/zh-tw/glossary/recursion/index.html | 15 ++++ files/zh-tw/glossary/reflow/index.html | 12 +++ files/zh-tw/glossary/regular_expression/index.html | 29 +++++++ .../glossary/responsive_web_design/index.html | 16 ++++ files/zh-tw/glossary/rest/index.html | 26 ++++++ files/zh-tw/glossary/routers/index.html | 29 +++++++ files/zh-tw/glossary/ruby/index.html | 31 +++++++ files/zh-tw/glossary/seo/index.html | 40 +++++++++ files/zh-tw/glossary/server/index.html | 19 +++++ files/zh-tw/glossary/sgml/index.html | 21 +++++ files/zh-tw/glossary/spa/index.html | 38 +++++++++ files/zh-tw/glossary/sql/index.html | 21 +++++ files/zh-tw/glossary/sql_injection/index.html | 63 ++++++++++++++ files/zh-tw/glossary/svg/index.html | 33 ++++++++ files/zh-tw/glossary/svn/index.html | 24 ++++++ files/zh-tw/glossary/synchronous/index.html | 19 +++++ files/zh-tw/glossary/type/index.html | 17 ++++ files/zh-tw/glossary/uri/index.html | 15 ++++ files/zh-tw/glossary/url/index.html | 35 ++++++++ files/zh-tw/glossary/viewport/index.html | 25 ++++++ files/zh-tw/glossary/w3c/index.html | 19 +++++ files/zh-tw/glossary/webextensions/index.html | 19 +++++ files/zh-tw/glossary/websockets/index.html | 29 +++++++ 150 files changed, 3785 insertions(+) create mode 100644 files/zh-tw/glossary/404/index.html create mode 100644 files/zh-tw/glossary/502/index.html create mode 100644 files/zh-tw/glossary/abstraction/index.html create mode 100644 files/zh-tw/glossary/accessibility/index.html create mode 100644 files/zh-tw/glossary/adobe_flash/index.html create mode 100644 files/zh-tw/glossary/ajax/index.html create mode 100644 files/zh-tw/glossary/algorithm/index.html create mode 100644 files/zh-tw/glossary/api/index.html create mode 100644 files/zh-tw/glossary/apple_safari/index.html create mode 100644 files/zh-tw/glossary/argument/index.html create mode 100644 files/zh-tw/glossary/aria/index.html create mode 100644 files/zh-tw/glossary/arpa/index.html create mode 100644 files/zh-tw/glossary/arpanet/index.html create mode 100644 files/zh-tw/glossary/array/index.html create mode 100644 files/zh-tw/glossary/ascii/index.html create mode 100644 files/zh-tw/glossary/asynchronous/index.html create mode 100644 files/zh-tw/glossary/atag/index.html create mode 100644 files/zh-tw/glossary/attribute/index.html create mode 100644 files/zh-tw/glossary/bandwidth/index.html create mode 100644 files/zh-tw/glossary/blink/index.html create mode 100644 files/zh-tw/glossary/block/css/index.html create mode 100644 files/zh-tw/glossary/block/index.html create mode 100644 files/zh-tw/glossary/boolean/index.html create mode 100644 files/zh-tw/glossary/bootstrap/index.html create mode 100644 files/zh-tw/glossary/browser/index.html create mode 100644 files/zh-tw/glossary/browsing_context/index.html create mode 100644 files/zh-tw/glossary/buffer/index.html create mode 100644 files/zh-tw/glossary/cache/index.html create mode 100644 files/zh-tw/glossary/cacheable/index.html create mode 100644 files/zh-tw/glossary/callback_function/index.html create mode 100644 files/zh-tw/glossary/canvas/index.html create mode 100644 files/zh-tw/glossary/character/index.html create mode 100644 files/zh-tw/glossary/character_encoding/index.html create mode 100644 files/zh-tw/glossary/character_set/index.html create mode 100644 files/zh-tw/glossary/chrome/index.html create mode 100644 files/zh-tw/glossary/cipher_suite/index.html create mode 100644 files/zh-tw/glossary/ciphertext/index.html create mode 100644 files/zh-tw/glossary/class/index.html create mode 100644 files/zh-tw/glossary/closure/index.html create mode 100644 files/zh-tw/glossary/cms/index.html create mode 100644 files/zh-tw/glossary/compile/index.html create mode 100644 files/zh-tw/glossary/compile_time/index.html create mode 100644 files/zh-tw/glossary/computer_programming/index.html create mode 100644 files/zh-tw/glossary/constructor/index.html create mode 100644 files/zh-tw/glossary/continuous_media/index.html create mode 100644 files/zh-tw/glossary/cookie/index.html create mode 100644 files/zh-tw/glossary/cors/index.html create mode 100644 files/zh-tw/glossary/crawler/index.html create mode 100644 files/zh-tw/glossary/crud/index.html create mode 100644 files/zh-tw/glossary/cryptography/index.html create mode 100644 files/zh-tw/glossary/csp/index.html create mode 100644 files/zh-tw/glossary/csrf/index.html create mode 100644 files/zh-tw/glossary/css/index.html create mode 100644 files/zh-tw/glossary/css_pixel/index.html create mode 100644 files/zh-tw/glossary/css_preprocessor/index.html create mode 100644 files/zh-tw/glossary/css_selector/index.html create mode 100644 files/zh-tw/glossary/cssom/index.html create mode 100644 files/zh-tw/glossary/data_structure/index.html create mode 100644 files/zh-tw/glossary/developer_tools/index.html create mode 100644 files/zh-tw/glossary/dhtml/index.html create mode 100644 files/zh-tw/glossary/dns/index.html create mode 100644 files/zh-tw/glossary/doctype/index.html create mode 100644 files/zh-tw/glossary/document_directive/index.html create mode 100644 files/zh-tw/glossary/dom/index.html create mode 100644 files/zh-tw/glossary/domain/index.html create mode 100644 files/zh-tw/glossary/domain_name/index.html create mode 100644 files/zh-tw/glossary/dos_attack/index.html create mode 100644 files/zh-tw/glossary/ecma/index.html create mode 100644 files/zh-tw/glossary/ecmascript/index.html create mode 100644 files/zh-tw/glossary/element/index.html create mode 100644 files/zh-tw/glossary/empty_element/index.html create mode 100644 files/zh-tw/glossary/engine/index.html create mode 100644 files/zh-tw/glossary/event/index.html create mode 100644 files/zh-tw/glossary/firefox_os/index.html create mode 100644 files/zh-tw/glossary/firewall/index.html create mode 100644 files/zh-tw/glossary/first-class_function/index.html create mode 100644 files/zh-tw/glossary/first_contentful_paint/index.html create mode 100644 files/zh-tw/glossary/first_cpu_idle/index.html create mode 100644 files/zh-tw/glossary/first_input_delay/index.html create mode 100644 files/zh-tw/glossary/ftp/index.html create mode 100644 files/zh-tw/glossary/git/index.html create mode 100644 files/zh-tw/glossary/grid/index.html create mode 100644 files/zh-tw/glossary/hash/index.html create mode 100644 files/zh-tw/glossary/head/index.html create mode 100644 files/zh-tw/glossary/hoisting/index.html create mode 100644 files/zh-tw/glossary/host/index.html create mode 100644 files/zh-tw/glossary/html/index.html create mode 100644 files/zh-tw/glossary/html5/index.html create mode 100644 files/zh-tw/glossary/http/index.html create mode 100644 files/zh-tw/glossary/identifier/index.html create mode 100644 files/zh-tw/glossary/iife/index.html create mode 100644 files/zh-tw/glossary/immutable/index.html create mode 100644 files/zh-tw/glossary/index.html create mode 100644 files/zh-tw/glossary/indexeddb/index.html create mode 100644 files/zh-tw/glossary/ip_address/index.html create mode 100644 files/zh-tw/glossary/jank/index.html create mode 100644 files/zh-tw/glossary/java/index.html create mode 100644 files/zh-tw/glossary/javascript/index.html create mode 100644 files/zh-tw/glossary/jpeg/index.html create mode 100644 files/zh-tw/glossary/jquery/index.html create mode 100644 files/zh-tw/glossary/json/index.html create mode 100644 files/zh-tw/glossary/key/index.html create mode 100644 files/zh-tw/glossary/keyword/index.html create mode 100644 files/zh-tw/glossary/ligature/index.html create mode 100644 files/zh-tw/glossary/localization/index.html create mode 100644 files/zh-tw/glossary/mathml/index.html create mode 100644 files/zh-tw/glossary/mime_type/index.html create mode 100644 files/zh-tw/glossary/mvc/index.html create mode 100644 files/zh-tw/glossary/node.js/index.html create mode 100644 files/zh-tw/glossary/null/index.html create mode 100644 files/zh-tw/glossary/number/index.html create mode 100644 files/zh-tw/glossary/object/index.html create mode 100644 files/zh-tw/glossary/oop/index.html create mode 100644 files/zh-tw/glossary/opera_browser/index.html create mode 100644 files/zh-tw/glossary/parameter/index.html create mode 100644 files/zh-tw/glossary/php/index.html create mode 100644 files/zh-tw/glossary/png/index.html create mode 100644 files/zh-tw/glossary/pop/index.html create mode 100644 files/zh-tw/glossary/port/index.html create mode 100644 files/zh-tw/glossary/presto/index.html create mode 100644 files/zh-tw/glossary/progressive_enhancement/index.html create mode 100644 files/zh-tw/glossary/property/index.html create mode 100644 files/zh-tw/glossary/property/javascript/index.html create mode 100644 files/zh-tw/glossary/protocol/index.html create mode 100644 files/zh-tw/glossary/prototype/index.html create mode 100644 files/zh-tw/glossary/pseudo-element/index.html create mode 100644 files/zh-tw/glossary/python/index.html create mode 100644 files/zh-tw/glossary/recursion/index.html create mode 100644 files/zh-tw/glossary/reflow/index.html create mode 100644 files/zh-tw/glossary/regular_expression/index.html create mode 100644 files/zh-tw/glossary/responsive_web_design/index.html create mode 100644 files/zh-tw/glossary/rest/index.html create mode 100644 files/zh-tw/glossary/routers/index.html create mode 100644 files/zh-tw/glossary/ruby/index.html create mode 100644 files/zh-tw/glossary/seo/index.html create mode 100644 files/zh-tw/glossary/server/index.html create mode 100644 files/zh-tw/glossary/sgml/index.html create mode 100644 files/zh-tw/glossary/spa/index.html create mode 100644 files/zh-tw/glossary/sql/index.html create mode 100644 files/zh-tw/glossary/sql_injection/index.html create mode 100644 files/zh-tw/glossary/svg/index.html create mode 100644 files/zh-tw/glossary/svn/index.html create mode 100644 files/zh-tw/glossary/synchronous/index.html create mode 100644 files/zh-tw/glossary/type/index.html create mode 100644 files/zh-tw/glossary/uri/index.html create mode 100644 files/zh-tw/glossary/url/index.html create mode 100644 files/zh-tw/glossary/viewport/index.html create mode 100644 files/zh-tw/glossary/w3c/index.html create mode 100644 files/zh-tw/glossary/webextensions/index.html create mode 100644 files/zh-tw/glossary/websockets/index.html (limited to 'files/zh-tw/glossary') diff --git a/files/zh-tw/glossary/404/index.html b/files/zh-tw/glossary/404/index.html new file mode 100644 index 0000000000..d655abe4c5 --- /dev/null +++ b/files/zh-tw/glossary/404/index.html @@ -0,0 +1,16 @@ +--- +title: '404' +slug: Glossary/404 +tags: + - Glossary + - HTTP Errors +translation_of: Glossary/404 +--- +

404 為標準回應碼,代表 {{Glossary("Server", "伺服器")}} 沒辦法找到要求的資源。

+ +

深入了解

+ + diff --git a/files/zh-tw/glossary/502/index.html b/files/zh-tw/glossary/502/index.html new file mode 100644 index 0000000000..c8541f0ce4 --- /dev/null +++ b/files/zh-tw/glossary/502/index.html @@ -0,0 +1,20 @@ +--- +title: '502' +slug: Glossary/502 +tags: + - '502' + - HTTP 錯誤 + - 術語表 +translation_of: Glossary/502 +--- +

這是一個{{Glossary("HTTP")}} 錯誤代碼,表示“網關錯誤”。

+ +

一個伺服器({{Glossary("Server", "server")}})可以在一個客戶端(譬如網頁瀏覽器)和其他上游伺服器之間充當網關或代理(中間人)。當你請求訪問一個鏈接({{Glossary("URL")}}),網關伺服器可以從上游伺服器傳達你的請求。"502" 意味著上游伺服器返回了一個無效的響應。

+ +

正常情況下上游伺服器是不會宕機的(如沒有提供對網關/代理的相應),簡單來説就是作爲網關/代理不明白相同的數據交換協議。 因特網協議({{Glossary("Protocol", "protocols")}})是非常明確的,所以 502 通常意味著有一臺或者多臺機器沒有正確或者完整的程式。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/abstraction/index.html b/files/zh-tw/glossary/abstraction/index.html new file mode 100644 index 0000000000..ba011d5bee --- /dev/null +++ b/files/zh-tw/glossary/abstraction/index.html @@ -0,0 +1,14 @@ +--- +title: 抽象化 +slug: Glossary/Abstraction +translation_of: Glossary/Abstraction +--- +

在{{Glossary("computer programming")}} 領域中,抽象化可用來減少軟體系統複雜度,讓設計及使用效率提升。用簡單的 {{Glossary("API", "APIs")}}隱藏背後複雜的系統機制。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/accessibility/index.html b/files/zh-tw/glossary/accessibility/index.html new file mode 100644 index 0000000000..5e51a1b7f9 --- /dev/null +++ b/files/zh-tw/glossary/accessibility/index.html @@ -0,0 +1,31 @@ +--- +title: Accessibility +slug: Glossary/Accessibility +tags: + - 術語 +translation_of: Glossary/Accessibility +--- +

網頁無障礙化 (A11Y) 指的是儘管有物理和技術上的限制,能夠保持網站可用最佳的方法。網頁無障礙化是透過{{Glossary("WAI","Web Accessibility Initiative")}} (WAI)在{{Glossary("W3C")}}被正式定義和討論的。

+ +

了解更多

+ +

基本知識

+ + + +

學習網頁無障礙化

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/adobe_flash/index.html b/files/zh-tw/glossary/adobe_flash/index.html new file mode 100644 index 0000000000..8e09c12f7b --- /dev/null +++ b/files/zh-tw/glossary/adobe_flash/index.html @@ -0,0 +1,28 @@ +--- +title: Adobe Flash +slug: Glossary/Adobe_Flash +tags: + - Flash + - 術語表 + - 過時技術 +translation_of: Glossary/Adobe_Flash +--- +

Flash 是一個由 Adobe 開發的過時網路技術。它能展現出富有表現力的 Web 程式、向量圖形、還有各種多媒體。Adobe Flash 需要在{{Glossary("瀏覽器")}}安裝相對應的擴充套件後才能使用。

+ + diff --git a/files/zh-tw/glossary/ajax/index.html b/files/zh-tw/glossary/ajax/index.html new file mode 100644 index 0000000000..b93f5acf21 --- /dev/null +++ b/files/zh-tw/glossary/ajax/index.html @@ -0,0 +1,25 @@ +--- +title: AJAX +slug: Glossary/AJAX +tags: + - AJAX + - 術語表 +translation_of: Glossary/AJAX +--- +

AJAX(Asynchronous {{glossary("JavaScript")}} And {{glossary("XML")}}、非同步 JavaScript 與 XML)是結合了 {{glossary("HTML")}}、{{glossary("CSS")}}、JavaScript 、{{glossary("DOM")}}、還有 XMLHttpRequest {{glossary("object")}},以建立更複雜的網頁程式實做。AJAX 可以允許網頁只更新需要的部分,而無須重新載入整個頁面。另外,AJAX 也能讓你非同步工作,意思是說程式碼能在網頁試圖重新載入時持續運行(與同步(synchronously)相對比──它會在運行的時候封鎖程式碼運作,直到網頁重新載入成功為止)。

+ +

了解更多

+ +

基本知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/algorithm/index.html b/files/zh-tw/glossary/algorithm/index.html new file mode 100644 index 0000000000..d035e75838 --- /dev/null +++ b/files/zh-tw/glossary/algorithm/index.html @@ -0,0 +1,6 @@ +--- +title: 演算法 +slug: Glossary/Algorithm +translation_of: Glossary/Algorithm +--- +

演算法(algorithm)是包含了程式功能該如何執行的一連串指示。

diff --git a/files/zh-tw/glossary/api/index.html b/files/zh-tw/glossary/api/index.html new file mode 100644 index 0000000000..ee9802015a --- /dev/null +++ b/files/zh-tw/glossary/api/index.html @@ -0,0 +1,34 @@ +--- +title: API +slug: Glossary/API +tags: + - API + - 術語表 +translation_of: Glossary/API +--- +

一個API (Application Programming Interface)是指存在于軟體程式中為軟體與其他項目,如其他軟體或硬體,實現互動的一系列功能和規則。

+ +

在網頁開發,一個 API 通常指的是一系列的代碼功能(如: {{glossary("method","methods")}}, {{Glossary("property","properties")}}, events, and {{Glossary("URL","URLs")}})爲了方便程式開發者使用他們的 apps 通過用戶的網頁瀏覽器組件,或與用戶計算機上的其他軟體或硬件, 或與第三方網站和服務實現互動。

+ +

例如:

+ + + +

了解更多

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/apple_safari/index.html b/files/zh-tw/glossary/apple_safari/index.html new file mode 100644 index 0000000000..6e0dcdc760 --- /dev/null +++ b/files/zh-tw/glossary/apple_safari/index.html @@ -0,0 +1,27 @@ +--- +title: Apple Safari +slug: Glossary/Apple_Safari +tags: + - Safari + - 瀏覽器 + - 術語表 +translation_of: Glossary/Apple_Safari +--- +

Safari 是一個來自蘋果開發的網頁瀏覽器({{Glossary("Browser","Web browser")}})同時被捆綁發行在 Mac OS X 和 IOS 平臺。它是基於開源的 WebKit 引擎.

+ +

了解更多

+ +

基礎知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/argument/index.html b/files/zh-tw/glossary/argument/index.html new file mode 100644 index 0000000000..d08a26e0c8 --- /dev/null +++ b/files/zh-tw/glossary/argument/index.html @@ -0,0 +1,24 @@ +--- +title: 引數 +slug: Glossary/Argument +tags: + - CodingScripting + - JavaScript + - 術語表 +translation_of: Glossary/Argument +--- +

引數(argument)是作爲{{Glossary("function","函式")}}輸入的{{Glossary("primitive","原始型別")}}{{glossary("value","值")}}或著{{Glossary("object","物件")}}。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/aria/index.html b/files/zh-tw/glossary/aria/index.html new file mode 100644 index 0000000000..ef57c54ddf --- /dev/null +++ b/files/zh-tw/glossary/aria/index.html @@ -0,0 +1,17 @@ +--- +title: ARIA +slug: Glossary/ARIA +tags: + - 無障礙化 + - 術語表 +translation_of: Glossary/ARIA +--- +

ARIA(Accessible Rich {{glossary("Internet")}} Applications,可訪問的富網際網路應用程式)是一個 {{Glossary("W3C")}} 規範,用已對 {{Glossary("HTML")}} 添加語義和元數據,以迎合需要輔助技術的用戶。

+ +

例如:你可以給一個 {{HTMLElement("p")}} {{glossary("tag","標籤")}}添加 role="alert" 屬性提醒視覺障礙用戶,這裏的訊息很重要並對時間敏感(針對非視覺障礙用戶,你可能本來會用文字顔色傳達這種事)。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/arpa/index.html b/files/zh-tw/glossary/arpa/index.html new file mode 100644 index 0000000000..8c8d4769be --- /dev/null +++ b/files/zh-tw/glossary/arpa/index.html @@ -0,0 +1,18 @@ +--- +title: ARPA +slug: Glossary/ARPA +tags: + - ARPA + - 術語表 +translation_of: Glossary/ARPA +--- +

.arpa (地址和路由參數區域)是一個{{glossary("TLD","top-level domain")}} 用於網際網路基建意圖,特別是反向 DNS 查找 (如:根據給出的 {{glossary("IP address")}} 查找 {{glossary('domain name')}})。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/arpanet/index.html b/files/zh-tw/glossary/arpanet/index.html new file mode 100644 index 0000000000..e4a8aaf166 --- /dev/null +++ b/files/zh-tw/glossary/arpanet/index.html @@ -0,0 +1,17 @@ +--- +title: Arpanet +slug: Glossary/Arpanet +tags: + - 網路結構 + - 術語表 +translation_of: Glossary/Arpanet +--- +

ARPAnet (高級研究代理網路)是一個早期的計算機網路,構建於 1969 年作為一個強大的媒介用於傳輸敏感軍事數據和連接米國各地主要的研究團體。ARPAnet 首先運行NCP (網路控制協定) 隨後運行網際網路的第一版協定或{{glossary("TCP")}}/{{glossary("IPv6","IP")}} 套件,使 ARPAnet 成為新生代網際網路{{glossary("Internet")}}的重要組成部分。ARPAnet 被關閉在 1990 年代的早期。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/array/index.html b/files/zh-tw/glossary/array/index.html new file mode 100644 index 0000000000..fc8d84a3fd --- /dev/null +++ b/files/zh-tw/glossary/array/index.html @@ -0,0 +1,31 @@ +--- +title: 陣列 +slug: Glossary/array +tags: + - 術語表 + - 陣列 +translation_of: Glossary/array +--- +

陣列是個有序資料的集合(按程式語言不同,資料型態可以是{{Glossary("primitive","原始型別")}}或{{Glossary("object","物件")}})。陣列是用來把複數的值存進一個變數裡。與只能存一個值的變數,呈現強烈的對比。

+ +

每一個陣列中的元素,都附有一個能讀相對應元素的數字,稱做數字索引(numeric index)。在 JavaScript 中,陣列的索引開始於數字 0 且能透過不同的{{Glossary("Method", "方法")}}來操作。

+ +

JavaScript 中的陣列:

+ +
var myArray = [1, 2, 3, 4];
+var catNamesArray = ["Jacqueline", "Sophia", "Autumn"];
+//Arrays in JavaScript can hold different types of data, as shown above.
+ +

了解更多

+ +

常規知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/ascii/index.html b/files/zh-tw/glossary/ascii/index.html new file mode 100644 index 0000000000..3d75607b2c --- /dev/null +++ b/files/zh-tw/glossary/ascii/index.html @@ -0,0 +1,16 @@ +--- +title: ASCII +slug: Glossary/ASCII +tags: + - ASCII + - 編碼方式 + - 術語表 +translation_of: Glossary/ASCII +--- +

ASCII (米國信息交換標準碼)是計算機用來轉換字母、數字、符號和控制代碼轉換為數字形式的最流行的編碼方法之一。自 2007 以來, {{Glossary("UTF-8")}} 在網頁上取代了它。

+ +

了解更多

+ +

基礎知識

+ +

維基百科上的 {{Interwiki("wikipedia", "ASCII")}}

diff --git a/files/zh-tw/glossary/asynchronous/index.html b/files/zh-tw/glossary/asynchronous/index.html new file mode 100644 index 0000000000..807ac2cd14 --- /dev/null +++ b/files/zh-tw/glossary/asynchronous/index.html @@ -0,0 +1,19 @@ +--- +title: Asynchronous 非同步 +slug: Glossary/Asynchronous +translation_of: Glossary/Asynchronous +--- +

非同步(Asynchronous,又稱異步)指的是各方在方便或可能時,才接收並處理訊息,而不是立刻這麼做的通訊環境。

+ +

你可以用人類的溝通環境來比喻:例如電子郵件,寄件者傳送電郵、收件者會在方便時才回覆。他們不用馬上就那麼做。

+ +

它也可以用來描述一個程式性的通信環境,例如 {{domxref("Ajax")}} 就是個請求 HTTP 少量數據的非同步機制。結果會在響應完成時發回,而不是立刻發送。

+ +

了解更多

+ +

技術資訊

+ + diff --git a/files/zh-tw/glossary/atag/index.html b/files/zh-tw/glossary/atag/index.html new file mode 100644 index 0000000000..fc0e1f23c4 --- /dev/null +++ b/files/zh-tw/glossary/atag/index.html @@ -0,0 +1,24 @@ +--- +title: ATAG +slug: Glossary/ATAG +tags: + - ATAG + - 術語表 +translation_of: Glossary/ATAG +--- +

ATAG (編輯工具可訪問性{{glossary("Accessibility")}}指南)是一個{{Glossary("W3C")}} 為創建可訪問内容構建可訪問性編輯工具的建議。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/attribute/index.html b/files/zh-tw/glossary/attribute/index.html new file mode 100644 index 0000000000..01a8cba491 --- /dev/null +++ b/files/zh-tw/glossary/attribute/index.html @@ -0,0 +1,18 @@ +--- +title: Attribute +slug: Glossary/Attribute +tags: + - 標簽屬性 + - 術語表 +translation_of: Glossary/Attribute +--- +

Attribute (標籤屬性)用於擴充 HTML {{Glossary("tag")}},可改變標籤行為或提供額外資訊。HTML 標籤屬性的正確格式為 name=value(以屬性名稱對上屬性值)。

+ +

了解更多

+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/bandwidth/index.html b/files/zh-tw/glossary/bandwidth/index.html new file mode 100644 index 0000000000..49cb9be330 --- /dev/null +++ b/files/zh-tw/glossary/bandwidth/index.html @@ -0,0 +1,16 @@ +--- +title: Bandwidth +slug: Glossary/Bandwidth +tags: + - 基礎知識 + - 帶寬 + - 術語表 +translation_of: Glossary/Bandwidth +--- +

帶寬是指通過數據連接在一定時期内可以傳輸的數據信息量,通常以每秒比特數的倍數為單位,也就是bps,如:兆位每秒(Mbps)或吉比特每秒(Gbps)。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/blink/index.html b/files/zh-tw/glossary/blink/index.html new file mode 100644 index 0000000000..96c25980de --- /dev/null +++ b/files/zh-tw/glossary/blink/index.html @@ -0,0 +1,20 @@ +--- +title: Blink +slug: Glossary/Blink +tags: + - Glossary + - Infrastructure + - Layout +translation_of: Glossary/Blink +--- +

Blink 是一套開放原始碼的瀏覽器排版引擎,由 Google 作為 Chromium 專案的一部份(所以也是 Chrome 的一部份)所打造。更仔細地講,Blink 是 {{glossary("WebKit")}} 當中處理排版、描繪、{{Glossary("DOM")}} 的 WebCore 程式庫的衍生版本。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/block/css/index.html b/files/zh-tw/glossary/block/css/index.html new file mode 100644 index 0000000000..c9da6a9cb5 --- /dev/null +++ b/files/zh-tw/glossary/block/css/index.html @@ -0,0 +1,22 @@ +--- +title: 區塊 (CSS) +slug: Glossary/Block/CSS +tags: + - Block + - CSS + - HTML + - display + - 術語表 +translation_of: Glossary/Block/CSS +--- +

在網頁上一個區塊是一個 {{glossary("HTML")}}元素({{glossary("element")}})它會出現一個新的行,例:在前面的元素之下和後面的元素之前(通常稱爲塊級元素)。擧個例子, {{htmlelement("p")}} 標簽就是一個默認的塊級元素,而 {{htmlelement("a")}} 標簽則是一個内聯元素— 你可以在 HTML 源代碼放一些相鄰的鏈接,他們將會并列渲染在相同的行。

+ +

使用 {{cssxref("display")}} 屬性你可以隨意改變大多數元素的顯示方式,不論是内聯還是區塊(其中還有很多其他的選項); blocks 也同樣會受到定位方案和 {{cssxref("position")}} 屬性的影響。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/block/index.html b/files/zh-tw/glossary/block/index.html new file mode 100644 index 0000000000..8f17177e82 --- /dev/null +++ b/files/zh-tw/glossary/block/index.html @@ -0,0 +1,13 @@ +--- +title: Block +slug: Glossary/Block +tags: + - Disambiguation + - Glossary + - NeedsTranslation + - TopicStub +translation_of: Glossary/Block +--- +

The term block can have several meanings depending on the context. It may refer to:

+ +

{{GlossaryDisambiguation}}

diff --git a/files/zh-tw/glossary/boolean/index.html b/files/zh-tw/glossary/boolean/index.html new file mode 100644 index 0000000000..c748ca87ac --- /dev/null +++ b/files/zh-tw/glossary/boolean/index.html @@ -0,0 +1,52 @@ +--- +title: 布林 +slug: Glossary/Boolean +tags: + - JavaScript + - 布林 + - 資料型態 +translation_of: Glossary/Boolean +--- +

在電腦科學中,布林值是一種其值僅能為的邏輯資料型別,它是編程語言裡在邏輯上表達真或假的方式。如果沒有這種能力,很多功能會無法實現。舉個例子,JavaScript中的 if 語句 的判斷條件會利用布林值來決定接下來的代碼是否要被執行。又如JavaScript中的 for 循環,如果沒有一個能夠解釋成不林值的判斷條件,循環將不知道是否要繼續循環或停止。

+ +
***JavaScript if Statement***
+if(boolean conditional) {
+   //coding
+}
+
+if(true) {
+  console.log("boolean conditional resolved to true");
+} else {
+    console.log("boolean conditional resolved to false");
+  }
+
+
+
+***JavaScript for Loop***
+for(control variable; boolean conditional; counter) {
+  //coding
+}
+
+for(var i=0; i<4; i++) {
+  console.log("I print only when the boolean conditional is true");
+}
+
+ +

 

+ +

 

+ +

了解更多

+ +

常規知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/bootstrap/index.html b/files/zh-tw/glossary/bootstrap/index.html new file mode 100644 index 0000000000..1fa3eca197 --- /dev/null +++ b/files/zh-tw/glossary/bootstrap/index.html @@ -0,0 +1,16 @@ +--- +title: Bootstrap +slug: Glossary/Bootstrap +translation_of: Glossary/Bootstrap +--- +

Bootstrap 是自由的 {{Glossary("HTML")}}, CSS, {{Glossary("JavaScript")}} 開源框架。該框架旨在快速建立響應式網站。

+ +

起初 Bootstrap 被稱為 Twitter Blueprint,並且由 Twitter 的內部團隊開發。它支援響應式設計、提供已經設計好能直接使用的設計樣板、或著針對該樣板,做出需要的自訂更動。在開發過程中,由於 Bootstrap 已經與當代瀏覽器,還有最新版 {{glossary("Microsoft Internet Explorer", "Internet Explorer")}} 相容,在使用 Bootstrap 開發時也不需要多操心相容性問題。

+ + diff --git a/files/zh-tw/glossary/browser/index.html b/files/zh-tw/glossary/browser/index.html new file mode 100644 index 0000000000..323e5f26dd --- /dev/null +++ b/files/zh-tw/glossary/browser/index.html @@ -0,0 +1,24 @@ +--- +title: 瀏覽器 +slug: Glossary/Browser +translation_of: Glossary/Browser +--- +

網頁瀏覽器是種從 {{Glossary("World Wide Web","Web")}} 擷取並顯示頁面的程式,且讓用戶透過 {{Glossary("hyperlink","hyperlinks")}} 來進入其他頁面。

+ +

更進一步了解

+ +

一般知識

+ + + +

下載瀏覽器

+ + diff --git a/files/zh-tw/glossary/browsing_context/index.html b/files/zh-tw/glossary/browsing_context/index.html new file mode 100644 index 0000000000..77fa42eb7f --- /dev/null +++ b/files/zh-tw/glossary/browsing_context/index.html @@ -0,0 +1,22 @@ +--- +title: 瀏覽上下文 +slug: Glossary/Browsing_context +tags: + - 瀏覽上下文 + - 術語表 +translation_of: Glossary/Browsing_context +--- +

瀏覽上下文是一個瀏覽器({{glossary("browser")}})展示文檔({{domxref("Document")}})的環境(正常來説是一個現在的標簽,但也有可能是一個窗體或是一個框架裏面的頁面)

+ +

每個瀏覽上下文都有一個特定的活動文檔來源{{glossary("origin")}}並按順序列出所有文檔的歷史記錄。

+ +

瀏覽上下文之間的通訊被嚴格限制。衹有瀏覽上下文來自于同樣的來源,一個廣播信道({{domxref("BroadcastChannel")}})才能被打開和使用。

+ +

了解更多

+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/buffer/index.html b/files/zh-tw/glossary/buffer/index.html new file mode 100644 index 0000000000..f211c0106c --- /dev/null +++ b/files/zh-tw/glossary/buffer/index.html @@ -0,0 +1,17 @@ +--- +title: 緩衝區 +slug: Glossary/buffer +tags: + - 緩衝區 + - 術語表 +translation_of: Glossary/buffer +--- +

緩衝區是物理記憶軟體中的一個存儲區,用於在數據從一個地方傳輸到另一個地方時臨時存儲數據。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/cache/index.html b/files/zh-tw/glossary/cache/index.html new file mode 100644 index 0000000000..ca193a9570 --- /dev/null +++ b/files/zh-tw/glossary/cache/index.html @@ -0,0 +1,14 @@ +--- +title: Cache 快取 +slug: Glossary/Cache +translation_of: Glossary/Cache +--- +

快取(cache, web cache, HTTP cache)是暫時存放 HTTP 回應的組件。只要滿足特定要求,就能在接下來的 HTTP 請求派上用場。

+ +

深入理解

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/cacheable/index.html b/files/zh-tw/glossary/cacheable/index.html new file mode 100644 index 0000000000..f8e744e1d3 --- /dev/null +++ b/files/zh-tw/glossary/cacheable/index.html @@ -0,0 +1,59 @@ +--- +title: 可緩存 +slug: Glossary/cacheable +tags: + - 緩存 + - 術語表 +translation_of: Glossary/cacheable +--- +

可緩存的響應是可被緩存的HTTP 響應,它被存儲以供稍後檢索和使用,從而將新的請求保存在伺服器。不是所有的 HTTP 響應都可以被緩存,可以被緩存的 HTTP 響應需滿足如下列條件:

+ + + +

請注意一些不緩存請求/響應到指定的 URI 可能會導致相同 URI 上以前的緩存響應失效。例如,  {{HTTPMethod("PUT")}} 到 pageX.html 將使相同 URI 下所有的 {{HTTPMethod("GET")}} 或 {{HTTPMethod("HEAD")}} 請求緩存失效。

+ +

同樣的,如果請求的方法和響應的狀態都可以被緩存,那請求的響應也都將可以被緩存:

+ +
GET /pageX.html HTTP/1.1
+(…)
+
+200 OK
+(…)
+
+ +

{{HTTPMethod("PUT")}} 請求不能被緩存. 此外,它還將導致所有來源為 {{HTTPMethod("HEAD")}} or {{HTTPMethod("GET")}} 相同的 URI 緩存數據無效 :

+ +
PUT /pageX.html HTTP/1.1
+(…)
+
+200 OK
+(…)
+
+ +

指定的 {{HTTPHeader("Cache-Control")}} 頭部在響應中可以阻止緩存:

+ +
GET /pageX.html HTTP/1.1
+(…)
+
+200 OK
+Cache-Control: no-cache
+(…)
+ +

了解更多

+ +

基礎知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/callback_function/index.html b/files/zh-tw/glossary/callback_function/index.html new file mode 100644 index 0000000000..3bfcdf6dd3 --- /dev/null +++ b/files/zh-tw/glossary/callback_function/index.html @@ -0,0 +1,36 @@ +--- +title: 回呼函式 +slug: Glossary/Callback_function +translation_of: Glossary/Callback_function +--- +

回呼函式(callback function)是指能藉由參數(argument)通往另一個函式的函式。它會在外部函式內調用、以完成某些事情。

+ +

以下是簡單的範例:

+ +
function greeting(name) {
+  alert('Hello ' + name);
+}
+
+function processUserInput(callback) {
+  var name = prompt('輸入你的名字:');
+  callback(name);
+}
+
+processUserInput(greeting);
+ +

這是個{{glossary("synchronous","同步")}}回呼的例子,因為它是立即執行的。

+ +

但請注意,回呼常用來延續{{glossary("asynchronous","非同步")}}行動完成後的程式執行:這就叫做非同步回呼(asynchronous callbacks)。例如說我們的 maps-example.html 範例(也請參見這個)用了 Google Maps API 與 Geolocation API 來把你設備的位置,顯示到地圖上。

+ +

因為我們透過非同步取得 GPS 的設備坐標(我們不知道數據何時會被回傳),{{domxref("Geolocation.getCurrentPosition()")}} 方法把一個匿名回呼函式作為參數,它會回傳一個坐標數據以充當參數。該函式會在回傳坐標數據後執行。

+ +

深入理解

+ +

一般常識

+ + diff --git a/files/zh-tw/glossary/canvas/index.html b/files/zh-tw/glossary/canvas/index.html new file mode 100644 index 0000000000..f28d6a36af --- /dev/null +++ b/files/zh-tw/glossary/canvas/index.html @@ -0,0 +1,34 @@ +--- +title: Canvas +slug: Glossary/Canvas +tags: + - HTML + - JavaScript +translation_of: Glossary/Canvas +--- +
+

一個 {{Glossary("HTML")}} {{HTMLElement("canvas")}} 元素提供一個空的圖區使特定的  {{Glossary("JavaScript")}} {{Glossary("API","APIs")}} 可以在上面繪圖(像是 Canvas 2D 或 {{Glossary("WebGL")}}).

+ +

了解更多

+ +

常規知識

+ + + +

學習資源

+ + + +

技術參考

+ + +
diff --git a/files/zh-tw/glossary/character/index.html b/files/zh-tw/glossary/character/index.html new file mode 100644 index 0000000000..5fb45cd212 --- /dev/null +++ b/files/zh-tw/glossary/character/index.html @@ -0,0 +1,22 @@ +--- +title: 字元 +slug: Glossary/Character +tags: + - 字串 + - 編碼腳本 + - 詞彙表 +translation_of: Glossary/Character +--- +

一個字元包含符號(字母、數字、標點符號)和不會顯示的"控制字元"(例如:回車符或連字號)。 {{glossary("UTF-8")}}是最常見的字元組合,它包含了人類最常使用的字形。

+ +

了解更多

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/character_encoding/index.html b/files/zh-tw/glossary/character_encoding/index.html new file mode 100644 index 0000000000..ed37fb7be6 --- /dev/null +++ b/files/zh-tw/glossary/character_encoding/index.html @@ -0,0 +1,25 @@ +--- +title: 字元編碼 +slug: Glossary/character_encoding +tags: + - 字彙表 +translation_of: Glossary/character_encoding +--- +

字元編碼提供了一套編碼系統,使不同的電腦系統或編譯環境可以存在並處理存在於其他語言當中的特殊字元。

+ +

例如在HTML中,我們通常使用以下程式碼來宣告一個UTF-8的字元編碼:

+ +
+
<meta charset="utf-8">
+ +

這使我們可以在HTML檔案中使用幾乎所有人類使用的語言,並且會正常顯示。

+
+ +

學習更多

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/character_set/index.html b/files/zh-tw/glossary/character_set/index.html new file mode 100644 index 0000000000..0bbdcf4f19 --- /dev/null +++ b/files/zh-tw/glossary/character_set/index.html @@ -0,0 +1,30 @@ +--- +title: 字符集 +slug: Glossary/character_set +tags: + - 字符 + - 術語表 +translation_of: Glossary/character_set +--- +

字符集 是能讓電腦知道如何解讀{{Glossary("字符")}}的編碼系統。解讀範圍包括字母、數字、標點符號、還有空白等。

+ +

早期各國出於各自的語言考量,而開發各自的字符集:例如日文的漢字 JIS(有 Shift-JIS、EUC-JP 等)、繁體中文的 Big5、俄文的 KOI8-R 等等。不過支持多語言的 {{Glossary("Unicode")}},逐漸成了最通用的字符集。

+ +

如果字符集使用不當(像是用 Unicode 閱覽 Big5 編碼的文章),可能會看到一大堆破碎的文字。這些破碎的文字,一般被俗稱為{{Interwiki("wikipedia", "亂碼")}}。

+ + diff --git a/files/zh-tw/glossary/chrome/index.html b/files/zh-tw/glossary/chrome/index.html new file mode 100644 index 0000000000..899af323a1 --- /dev/null +++ b/files/zh-tw/glossary/chrome/index.html @@ -0,0 +1,8 @@ +--- +title: Chrome +slug: Glossary/Chrome +translation_of: Glossary/Chrome +--- +

不要和 {{glossary("Google Chrome")}} 混淆,"chrome" 代表除了網頁本身之外任何可視的 {{glossary("瀏覽器")}} 外觀(例如:工具列、功能列、分頁)。

+ +

 

diff --git a/files/zh-tw/glossary/cipher_suite/index.html b/files/zh-tw/glossary/cipher_suite/index.html new file mode 100644 index 0000000000..5ae0281c08 --- /dev/null +++ b/files/zh-tw/glossary/cipher_suite/index.html @@ -0,0 +1,25 @@ +--- +title: 密碼套件 +slug: Glossary/Cipher_suite +tags: + - 安全性 + - 密碼學 + - 術語表 +translation_of: Glossary/Cipher_suite +--- +

密碼套件是包括了密鑰交換算法, 身份認證方法,批量加密密碼({{Glossary("cipher")}})和消息認證碼的組合.

+ +

在密碼系統({{Glossary("cryptosystem")}})裏像 {{Glossary("TLS")}}, 客戶端和伺服器在它們開始安全的通訊之前必須同意密碼套件。 典型的密碼套件如ECDHE_RSA_WITH_AES_128_GCM_SHA256 或 ECDHE-RSA-AES128-GCM-SHA256, 具有如下特徵:

+ + + +

了解更多

+ + diff --git a/files/zh-tw/glossary/ciphertext/index.html b/files/zh-tw/glossary/ciphertext/index.html new file mode 100644 index 0000000000..d6e9f3be4c --- /dev/null +++ b/files/zh-tw/glossary/ciphertext/index.html @@ -0,0 +1,18 @@ +--- +title: 密文 +slug: Glossary/Ciphertext +tags: + - 安全性 + - 私密性 + - 術語表 +translation_of: Glossary/Ciphertext +--- +

在密碼學({{glossary("Cryptography")}})中, 密文是傳達信息的加密信息,正常情況下無法解讀除非使用正確的密碼({{glossary("cipher")}})和秘密(通常叫做{{glossary("key")}}) 來解密({{glossary("decryption","decrypted")}})才可以再現原來的明文({{glossary("cleartext")}})。一個密文的安全性 以及包含信息的保密性依賴于安全的密碼和保持 key 的秘密性。 

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/class/index.html b/files/zh-tw/glossary/class/index.html new file mode 100644 index 0000000000..7effd1c427 --- /dev/null +++ b/files/zh-tw/glossary/class/index.html @@ -0,0 +1,22 @@ +--- +title: Class(類) +slug: Glossary/Class +tags: + - Class + - 術語表 + - 面向對象 + - 類 +translation_of: Glossary/Class +--- +

在物件導向編程({{glossary("OOP","object-oriented programming")}})中,一個類(Class)定義了一個 {{glossary("object","object")}} 的性質。類是一個定義了對象的屬性 ({{glossary("property","properties")}}) 和方法 ({{glossary("method","methods")}}) 的模板,繪製其他更多具體實例對象的「藍圖」。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/closure/index.html b/files/zh-tw/glossary/closure/index.html new file mode 100644 index 0000000000..6631d17d02 --- /dev/null +++ b/files/zh-tw/glossary/closure/index.html @@ -0,0 +1,23 @@ +--- +title: 閉包 +slug: Glossary/Closure +tags: + - 術語表 + - 閉包 +translation_of: Glossary/Closure +--- +

定義可執行範圍({{glossary("scope")}})的綁定:在 {{glossary("JavaScript")}}, {{glossary("function","functions")}}會創建一個閉包上下文

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/cms/index.html b/files/zh-tw/glossary/cms/index.html new file mode 100644 index 0000000000..c1b6ef5afa --- /dev/null +++ b/files/zh-tw/glossary/cms/index.html @@ -0,0 +1,14 @@ +--- +title: CMS 內容管理系統 +slug: Glossary/CMS +translation_of: Glossary/CMS +--- +

内容管理系统(Content Management System,CMS)是個能讓用戶發布、組織、變更、還有移除各種內容的軟體。所謂的內容,可以包含文字、嵌入式圖像,視頻,音頻、互動程式碼。

+ +

深入了解

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/compile/index.html b/files/zh-tw/glossary/compile/index.html new file mode 100644 index 0000000000..e65dfd2a32 --- /dev/null +++ b/files/zh-tw/glossary/compile/index.html @@ -0,0 +1,23 @@ +--- +title: 編譯 +slug: Glossary/Compile +tags: + - 編寫 + - 術語表 +translation_of: Glossary/Compile +--- +

編譯是將給定編程語言中的計算機程式轉換成用另一種語言(通常是計算機可執行的二進制語言)編寫的相同程式的過程。

+ +

了解更多

+ +

基礎知識

+ + + +

學習資源

+ + diff --git a/files/zh-tw/glossary/compile_time/index.html b/files/zh-tw/glossary/compile_time/index.html new file mode 100644 index 0000000000..c462fbd76e --- /dev/null +++ b/files/zh-tw/glossary/compile_time/index.html @@ -0,0 +1,19 @@ +--- +title: 編譯時間 +slug: Glossary/Compile_time +tags: + - 編譯時間 + - 術語表 +translation_of: Glossary/Compile_time +--- +

編譯時間是指程式從第一次加載到解析({{Glossary("parse","parsed")}})程式的時間。

+ +

了解更多

+ +

基礎知識

+ + + +

 

diff --git a/files/zh-tw/glossary/computer_programming/index.html b/files/zh-tw/glossary/computer_programming/index.html new file mode 100644 index 0000000000..efb69cf121 --- /dev/null +++ b/files/zh-tw/glossary/computer_programming/index.html @@ -0,0 +1,20 @@ +--- +title: Computer Programming +slug: Glossary/Computer_Programming +tags: + - 術語表 + - 計算機編程 +translation_of: Glossary/Computer_Programming +--- +

電腦程式設計是編寫和組織一系列指令的過程。它會以電腦/軟體程式能理解的語言,告訴他們要做什麼事情。這些指令來自不同形式的語言,例如如:C++、Java、JavaScript、HTML、Python、Ruby、和Rust。

+ +

使用合適的語言,可以設計/創建所有類型的軟體。例如,幫助科學家進行複雜運算的程式、儲存大量資料的資料庫、讓用戶下載音樂的網站、或者讓用戶建立動畫電影的軟體。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/constructor/index.html b/files/zh-tw/glossary/constructor/index.html new file mode 100644 index 0000000000..a920ec31f0 --- /dev/null +++ b/files/zh-tw/glossary/constructor/index.html @@ -0,0 +1,41 @@ +--- +title: 建構子 +slug: Glossary/Constructor +translation_of: Glossary/Constructor +--- +

建構子(constructor)屬於實做(instantiated)的指定 class {{glossary("object")}}。建構子概念可應用到大多數的{{glossary("OOP","物件導向")}}程式語言。基本上,{{glossary("JavaScript")}} 建構子用於在 {{glossary("class")}} 的實做(instance)聲明。

+ +

語法

+ +
// 這是個通用的建構子 class Default
+function Default() {
+}
+
+// 這是擁有幾個參數的過載建構子 class Overloaded
+function Overloaded(arg1, arg2, ...,argN){
+}
+
+ +

要呼叫 JavaScript 內的建構子 class ,請用 new 操作符給 {{glossary("variable")}} 宣告新的 {{glossary("object reference")}}。

+ +
function Default() {
+}
+
+// 新的 Default 物件參照被分派給局部變數 defaultReference
+var defaultReference = new Default();
+
+ +

深入理解

+ +

基本知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/continuous_media/index.html b/files/zh-tw/glossary/continuous_media/index.html new file mode 100644 index 0000000000..cd5b9e48b6 --- /dev/null +++ b/files/zh-tw/glossary/continuous_media/index.html @@ -0,0 +1,11 @@ +--- +title: Continuous Media +slug: Glossary/Continuous_Media +tags: + - CSS + - Media +translation_of: Glossary/Continuous_Media +--- +

CSS 可以用在許多不同的地方,印刷媒體便是一種。有些排版用的 CSS 會因為所處環境的不同而有不一樣的效果。

+ +

連續性媒體 (continuous media) 指的就是這樣一種環境,其中的內容不是以片段呈現,而是持續更迭。比方說顯示在螢幕上的網頁內容、語音內容都是連續性媒體。

diff --git a/files/zh-tw/glossary/cookie/index.html b/files/zh-tw/glossary/cookie/index.html new file mode 100644 index 0000000000..2751a58d60 --- /dev/null +++ b/files/zh-tw/glossary/cookie/index.html @@ -0,0 +1,21 @@ +--- +title: Cookie +slug: Glossary/Cookie +tags: + - cookie + - 術語表 +translation_of: Glossary/Cookie +--- +

Cookie 是一個網站通過瀏覽器訪問在訪客電腦裏留下的一小段信息。

+ +

Cookies 被網站用於個性化用戶個人的網頁體驗。 訪問該網站時它可能覆蓋了用戶的喜好或輸入。用戶可以自定義他們的瀏覽器是個接受或是刪除 cookies.

+ +

Cookies 可以設置和修改,在伺服器級別使用Set-Cookie HTTP header, 或在 JavaScript 使用 document.cookie.

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/cors/index.html b/files/zh-tw/glossary/cors/index.html new file mode 100644 index 0000000000..3aac367e9d --- /dev/null +++ b/files/zh-tw/glossary/cors/index.html @@ -0,0 +1,49 @@ +--- +title: CORS +slug: Glossary/CORS +tags: + - 安全 + - 術語表 +translation_of: Glossary/CORS +--- +

CORS(跨來源資源共享)是瀏覽器技術規範,用來傳輸 HTTP 標頭,判斷阻擋或允許不同來源網域的資源存取。

+ +

同源安全政策(same-origin security policy),預設會禁止跨網域的資源請求。CORS 賦予網站伺服器跨網域存取控制能力,使其能安全地跨網域傳輸資料。

+ +

了解更多

+ +

一般知識

+ + + +

CORS 標頭

+ +
+
{{HTTPHeader("Access-Control-Allow-Origin")}}
+
表示回傳資料能否共享(布林值)。
+
{{HTTPHeader("Access-Control-Allow-Credentials")}}
+
指定為 true 時,瀏覽器可以傳送或接收敏感資訊(HTTP Cookie)。
+
{{HTTPHeader("Access-Control-Allow-Headers")}}
+
指定可以出現在真實請求的 HTTP 標頭,用來回應預檢請求。
+
{{HTTPHeader("Access-Control-Allow-Methods")}}
+
指定存取資源所允許的 HTTP 方法,用來回應預檢請求。
+
{{HTTPHeader("Access-Control-Expose-Headers")}}
+
表示瀏覽器允許存取的標頭白名單,例如 X-My-Header, X-My-Custom-Header
+
{{HTTPHeader("Access-Control-Max-Age")}}
+
表示預檢請求的回傳結果可以被快取多久(秒)。
+
{{HTTPHeader("Access-Control-Request-Headers")}}
+
用於預檢請求,讓伺服器知道後續真實請求夾帶的 HTTP 標頭。
+
{{HTTPHeader("Access-Control-Request-Method")}}
+
用於預檢請求,讓伺服器端知道後續真實請求使用的 HTTP 方法
+
{{HTTPHeader("Origin")}}
+
告訴伺服器請求來源之網域。
+
+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/crawler/index.html b/files/zh-tw/glossary/crawler/index.html new file mode 100644 index 0000000000..85774c9786 --- /dev/null +++ b/files/zh-tw/glossary/crawler/index.html @@ -0,0 +1,12 @@ +--- +title: Crawler +slug: Glossary/Crawler +translation_of: Glossary/Crawler +--- +

網路爬蟲(web crawler)是個程式,也被稱作機器人(bot、robot),會系統化瀏覽{{glossary("World Wide Web","網路")}}以蒐集網頁資料。通常,搜尋引擎會用爬蟲建立網頁索引。

+ +

深入理解

+ + diff --git a/files/zh-tw/glossary/crud/index.html b/files/zh-tw/glossary/crud/index.html new file mode 100644 index 0000000000..16eb27ad05 --- /dev/null +++ b/files/zh-tw/glossary/crud/index.html @@ -0,0 +1,14 @@ +--- +title: CRUD +slug: Glossary/CRUD +translation_of: Glossary/CRUD +--- +

CRUD (新增:Create ,  讀取:Read, 更新: Update, 刪除:Delete) 是指操作儲存資料方式的首字母縮寫。是指操作儲存資料方式的首字母縮寫。CRUD 通常指在資料庫或數據儲存的執行操作,但它也適用於應用程式的高層次功能,像是不直接刪除資料,僅透過狀態標記為刪除的軟刪除。

+ +

Learn more

+ +

General knowledge

+ + diff --git a/files/zh-tw/glossary/cryptography/index.html b/files/zh-tw/glossary/cryptography/index.html new file mode 100644 index 0000000000..eb8c5953fc --- /dev/null +++ b/files/zh-tw/glossary/cryptography/index.html @@ -0,0 +1,20 @@ +--- +title: 密碼學 +slug: Glossary/Cryptography +tags: + - 安全性 + - 密碼學 + - 術語表 +translation_of: Glossary/Cryptography +--- +

密碼學, 或者說隱語, 是研究如何安全地編碼和傳遞信息的科學。加密學設計和研究用於在不安全的環境中對消息進行編碼和解碼的算法和應用。密碼學不僅僅涉及數據保密性,它還包含了識別、認證無依賴性和數據完整性。因此它同樣研究密碼學方法在上下文、密碼系統的用法。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/csp/index.html b/files/zh-tw/glossary/csp/index.html new file mode 100644 index 0000000000..17341793c6 --- /dev/null +++ b/files/zh-tw/glossary/csp/index.html @@ -0,0 +1,25 @@ +--- +title: CSP +slug: Glossary/CSP +tags: + - HTTP + - 術語表 +translation_of: Glossary/CSP +--- +

CSP (内容安全策略)是被用於檢測和緩解某些網站相關的攻擊類型如{{Glossary("XSS")}} 和資料注入。

+ +

這個策略的履行是基於 {{Glossary("HTTP")}} 頭部的 Content-Security-Policy.

+ +

了解更多

+ +

基礎知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/csrf/index.html b/files/zh-tw/glossary/csrf/index.html new file mode 100644 index 0000000000..cb8a6509ac --- /dev/null +++ b/files/zh-tw/glossary/csrf/index.html @@ -0,0 +1,23 @@ +--- +title: CSRF +slug: Glossary/CSRF +translation_of: Glossary/CSRF +--- +

跨站請求偽造(Cross-Site Request Forgery, CSRF)是一種冒充信任用戶,來傳送非預期指令的攻擊。比方說,可以在 {{glossary("URL")}} 連結背後添加惡意參數來攻擊:

+ +
<img src="https://www.example.com/index.php?action=delete&id=123">
+
+ +

對擁有 https://www.example.com 權限的用戶來說,<img> 元素會在用戶沒注意到的情況下執行 https://www.example.com 的操作。就算這個元素的域名不在 https://www.example.com 亦然。

+ +

有很多能預防 CSRF 的辦法,例如實作 {{glossary("REST", "RESTful API")}}、或添加 secure token 等等。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/css/index.html b/files/zh-tw/glossary/css/index.html new file mode 100644 index 0000000000..3afe82b10a --- /dev/null +++ b/files/zh-tw/glossary/css/index.html @@ -0,0 +1,49 @@ +--- +title: CSS +slug: Glossary/CSS +tags: + - CSS + - CodingScripting + - Web + - 'l10n:priority' + - 階層式樣式表 +translation_of: Glossary/CSS +--- +

階層式樣式表,或稱層疊樣式表(Cascading Style Sheets,CSS)是控制網頁的外觀,要在{{glossary("瀏覽器")}}裡面如何表現的陳述式語言。瀏覽器會套用 CSS 樣式宣告、以期被選中的元素能正確顯示之。樣式宣告包含了屬性(Property)與屬性值(Value)。它們會判斷網頁如何顯示。

+ +

CSS 與 {{Glossary("HTML")}} 及 {{Glossary("JavaScript")}} 並列為網路三大核心技術。CSS 通常用作{{Glossary("Element"," HTML 元素")}}的樣式化,但它也能給其他像 {{Glossary("SVG")}} 或 {{Glossary("XML")}} 之類的標示語言樣式化。

+ +

CSS 的規則,是一個{{Glossary("CSS Property","屬性")}}配上一個{{Glossary("selector","選擇器")}}。以下的例子能把所有 HTML 的段落元素,變成黑底黃字:

+ +
/* 選擇器「p」是指所有文件內的段落,都會受這個規則所影響。 */
+p {
+  /* "color" 屬性定義了文字的顏色,本例為黃色。 */
+  color: yellow;
+
+  /* "background-color" 屬性定義了背景的顏色,本例為黑色。 */
+  background-color: black
+}
+ +

階層式樣式表的「階層(Cascading)」一詞,就是在指:如何決定改變網頁外觀的選擇器,其優先次序為何的支配規則。這個功能非常重要,因為一個夠複雜的網頁,可以動用上千個 CSS 規則。

+ +

深入了解

+ +

基本知識

+ + + +

技術參考

+ + + +

深入了解 CSS

+ + diff --git a/files/zh-tw/glossary/css_pixel/index.html b/files/zh-tw/glossary/css_pixel/index.html new file mode 100644 index 0000000000..ef969d88a6 --- /dev/null +++ b/files/zh-tw/glossary/css_pixel/index.html @@ -0,0 +1,24 @@ +--- +title: CSS 像素 +slug: Glossary/CSS_pixel +translation_of: Glossary/CSS_pixel +--- +

CSS 像素—在 {{Glossary("CSS")}} 以 px 前輟表示—是大致對應單個點長高、肉眼也能輕易見到、否則就盡可能小的長度單位。按照定義,CSS 像素是在肉眼一臂之遙的距離下,像素密度(pixel density)為單個 96 DPI 像素的物理尺寸。

+ +

這定義當然因為如「輕易見到」或「一臂之遙」之類的不精確、因人而異的用詞,而有很多解釋的空間:像是用戶坐在桌上型電腦前,用戶與那台電腦的距離,其實比手機還遠。

+ +

因此,不管屏幕的實際像素密度多少,通常在談到 px 的時候,是為了想辦法讓 96px 與的長度等於1英寸(約 2.54 公分)。換句話說,如果某台手機的像素密度為 266 DPI,而某個元素的長度為 96px,該元素的實際長度為 266 {{Glossary("設備像素")}}。

+ +

深入理解

+ +

技術參考

+ + + +

學習它

+ + diff --git a/files/zh-tw/glossary/css_preprocessor/index.html b/files/zh-tw/glossary/css_preprocessor/index.html new file mode 100644 index 0000000000..b450a2dea9 --- /dev/null +++ b/files/zh-tw/glossary/css_preprocessor/index.html @@ -0,0 +1,26 @@ +--- +title: CSS 預處理器 +slug: Glossary/CSS_preprocessor +translation_of: Glossary/CSS_preprocessor +--- +

CSS 預處理器是個能透過該預處理器語法,產生純 {{Glossary("CSS")}} 的程式。CSS 預處理器有很多選擇,不過大多數的 CSS 預處理器都會添加純 CSS 所沒有的功能,例如:mixin、巢狀選擇器、繼承選擇器等。這些功能會令 CSS 結構的可讀性更高、也更容易維護。

+ +

要使用 CSS 預處理器,你需要在{{Glossary("伺服器")}}安裝 CSS 編譯器,或是在開發環境透過 CSS 預處理器編譯後,上傳編譯好的 CSS 到伺服器。

+ + diff --git a/files/zh-tw/glossary/css_selector/index.html b/files/zh-tw/glossary/css_selector/index.html new file mode 100644 index 0000000000..a22541284a --- /dev/null +++ b/files/zh-tw/glossary/css_selector/index.html @@ -0,0 +1,60 @@ +--- +title: CSS 選擇器 +slug: Glossary/CSS_Selector +tags: + - 樣式表 + - 超文本標記語言 + - 選擇器 +translation_of: Glossary/CSS_Selector +--- +

CSS 選擇器是 CSS 規則的一部分。它能讓你選定要調整哪個(或哪些)元素的樣式。例如:

+ +
***HTML***
+<div> I am inside of a div element. </div>
+<p> I am inside of a paragraph element. </p>
+
+
+***CSS***
+div {
+ color: green;
+}
+
+p {
+ color: red;
+}
+
+ +

在第一個 CSS 規則,我選取了 <div> 元素、並將該元素的文字變成了綠色。在第二個 CSS 規則,我選取了 <p> 元素、並將該元素的文字變成了紅色。結果應該長成這個樣子:

+ +

CSS 選擇器的結果

+ +

深入理解

+ +

基本知識

+ + + +

技術指南

+ +

{{SpecName("CSS3 Selectors")}}

diff --git a/files/zh-tw/glossary/cssom/index.html b/files/zh-tw/glossary/cssom/index.html new file mode 100644 index 0000000000..a55ce90074 --- /dev/null +++ b/files/zh-tw/glossary/cssom/index.html @@ -0,0 +1,18 @@ +--- +title: CSS 物件模型 (CSSOM) +slug: Glossary/CSSOM +translation_of: Glossary/CSSOM +--- +

CSS 物件模型 (CSS Object Model, CSSOM) 是一個存放所有 CSS 選擇器與相關特性的樹狀結構容器,擁有根節點、鄰居節點、後代節點、子代節點以及其他關係。CSSCOM 非常類似於 DOM 文件物件模型 。它們兩者都是關鍵渲染路徑的其中一部分,是網站渲染的必要步驟。

+ +

CSSOM 與 DOM 一起建構渲染樹,瀏覽器依序使用它來排版與繪製網頁。

+ +

CSSOM API

+ +

CSS Object Model 的系列 API 允許從 JavaScript 處理操作 CSS。它更像是 DOM,但是用於 CSS 而非 HTML。允許使用者動態讀取與修改 CSS 樣式。

+ +

也可以看看

+ + diff --git a/files/zh-tw/glossary/data_structure/index.html b/files/zh-tw/glossary/data_structure/index.html new file mode 100644 index 0000000000..ec4d0cd68f --- /dev/null +++ b/files/zh-tw/glossary/data_structure/index.html @@ -0,0 +1,14 @@ +--- +title: 資料結構 +slug: Glossary/Data_structure +tags: + - 資料結構 +translation_of: Glossary/Data_structure +--- +

資料結構 用一些特別的方式去組織與儲存資料使得資料能夠更有效率的被使用。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/developer_tools/index.html b/files/zh-tw/glossary/developer_tools/index.html new file mode 100644 index 0000000000..e437649d62 --- /dev/null +++ b/files/zh-tw/glossary/developer_tools/index.html @@ -0,0 +1,29 @@ +--- +title: 開發者工具 +slug: Glossary/Developer_Tools +tags: + - 術語表 + - 開發者工具 +translation_of: Glossary/Developer_Tools +--- +

開發者工具 (或"開發工具"或簡稱 "DevTools")是程式准許開發者執行創建、測試和{{Glossary("debug")}}的軟體。

+ +

現在的瀏覽器都提供了完整的開發者工具,它被准許用來檢查網站。它們讓用戶檢查和debug 頁面上的 {{Glossary("HTML")}}, {{Glossary("CSS")}} 和 {{Glossary("JavaScript")}}准許檢查引起的網路流量,并使測量性能成爲更多,以及其他。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/dhtml/index.html b/files/zh-tw/glossary/dhtml/index.html new file mode 100644 index 0000000000..dfffad06bb --- /dev/null +++ b/files/zh-tw/glossary/dhtml/index.html @@ -0,0 +1,7 @@ +--- +title: DHTML +slug: Glossary/DHTML +translation_of: Glossary/DHTML +--- +

DHTML 是動態 (dynamic) HTML 的縮短形式,且通常用於指那些未使用 flash 或 java 等外掛的交互式網頁後面的程式碼。The term aggregates the combined functionality 允許網頁開法者使用 HTMLCSSDocument Object Model ,以及 JavaScript

+

DHTML 與 {{Glossary("Ajax")}} 的不同之處在於,在載入階段它仍然基於 HTML, CSS 和 JS 等程式碼來定義。相反的,基於 Ajax 的頁面則使用 {{domxref("XMLHttpRequest")}} 介面來動態載入更多的資料。

diff --git a/files/zh-tw/glossary/dns/index.html b/files/zh-tw/glossary/dns/index.html new file mode 100644 index 0000000000..b03da4794b --- /dev/null +++ b/files/zh-tw/glossary/dns/index.html @@ -0,0 +1,18 @@ +--- +title: DNS +slug: Glossary/DNS +tags: + - DNS + - 術語表 +translation_of: Glossary/DNS +--- +

DNS (域名系統)將便於記憶的需要查找 {{Glossary("Internet")}} 上特定的計算機服務或私人網路{{glossary("domain name","域名")}}轉換為數字{{Glossary("IP address","IP addresses")}}。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/doctype/index.html b/files/zh-tw/glossary/doctype/index.html new file mode 100644 index 0000000000..bf0f51c1d9 --- /dev/null +++ b/files/zh-tw/glossary/doctype/index.html @@ -0,0 +1,22 @@ +--- +title: Doctype +slug: Glossary/Doctype +translation_of: Glossary/Doctype +--- +

<!DOCTYPE>會告知你的{{Glossary("瀏覽器")}}這個文件是用哪個版本的 {{Glossary("HTML")}} (或 {{glossary("XML")}})撰寫。Doctype 是一種宣告,而非 {{Glossary("tag")}}。你也可以把它想作「document type declaration」(文件類型宣告),或是縮寫的 「DTD」。

+ +

了解詳情

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/document_directive/index.html b/files/zh-tw/glossary/document_directive/index.html new file mode 100644 index 0000000000..3aa32cfdaa --- /dev/null +++ b/files/zh-tw/glossary/document_directive/index.html @@ -0,0 +1,35 @@ +--- +title: Document directive +slug: Glossary/Document_directive +tags: + - 指令 + - 術語表 +translation_of: Glossary/Document_directive +--- +

{{Glossary("CSP")}} 文件指令 被用在 {{HTTPHeader("Content-Security-Policy")}} 頭部和管理應用策略的文件或工作者環境的屬性。

+ +

文件指令不會回退到 {{CSP("default-src")}} 指令。

+ +

這些 CSP 指令是文件指令:

+ + + +

了解更多

+ +

技術資訊

+ + diff --git a/files/zh-tw/glossary/dom/index.html b/files/zh-tw/glossary/dom/index.html new file mode 100644 index 0000000000..17b1aa58f2 --- /dev/null +++ b/files/zh-tw/glossary/dom/index.html @@ -0,0 +1,29 @@ +--- +title: DOM +slug: Glossary/DOM +tags: + - DOM + - 文件物件模組 + - 術語表 +translation_of: Glossary/DOM +--- +

DOM(Document Object Model, DOM) 是用來表示和與任何{{glossary("HTML")}} 或 {{glossary("XML")}} 文件互動的 {{glossary("API")}}。DOM是一個載入於{{glossary("browser")}}中的文件模組,它的表示方式像樹的節點一樣, 每個節點代表著文件的一部分(如:{{Glossary("element")}}、 文字或留言)。

+ +

DOM是一個在{{glossary("World Wide Web","Web")}}中最常被使用的{{Glossary("API")}}s,因為它在瀏覽器中允許程式碼執行存取和互動任何在文件中的節點。 節點可以被創建、移動和變更。事件監聽器可以被新增至節點中,當發生特定事件時會被觸發。

+ +

DOM最初並沒有被定義—它是來自於當瀏覽器開始啟用{{Glossary("JavaScript")}}時出現。這個老舊的DOM有時候會稱DOM 0。此時此刻, WHATWG推動著DOM現存的標準.

+ +

了解更多

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/domain/index.html b/files/zh-tw/glossary/domain/index.html new file mode 100644 index 0000000000..311c5d0589 --- /dev/null +++ b/files/zh-tw/glossary/domain/index.html @@ -0,0 +1,16 @@ +--- +title: 域 +slug: Glossary/Domain +tags: + - 域 + - 瀏覽器 + - 術語表 +translation_of: Glossary/Domain +--- +

域是實體控制數據處理資源的電腦網路的一部分,比如說網站。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/domain_name/index.html b/files/zh-tw/glossary/domain_name/index.html new file mode 100644 index 0000000000..89565e0310 --- /dev/null +++ b/files/zh-tw/glossary/domain_name/index.html @@ -0,0 +1,18 @@ +--- +title: 域名 +slug: Glossary/Domain_name +tags: + - 域名 + - 術語表 +translation_of: Glossary/Domain_name +--- +

域名是指在網際網路({{Glossary("Internet")}})上的網站地址。它在網址({{Glossary("URL","URLs")}})裡被用來確定所屬伺服器的具體網頁。它由一組層次順序標籤 (labels)組成並以句點 (dots)分割和擴展名({{glossary("TLD","extension")}})結尾。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/dos_attack/index.html b/files/zh-tw/glossary/dos_attack/index.html new file mode 100644 index 0000000000..84c0b65a0f --- /dev/null +++ b/files/zh-tw/glossary/dos_attack/index.html @@ -0,0 +1,34 @@ +--- +title: DoS 攻擊 +slug: Glossary/DOS_attack +tags: + - DoS + - 安全性 + - 術語表 +translation_of: Glossary/DOS_attack +--- +

DoS (拒絕服務)是一種網路攻擊手段,它通過大量的伺服器請求來阻止合法使用伺服器({{glossary("server")}})資源。

+ +

計算機的資源有限,例如計算能力或内存。當這些資源過載,程式可能會凍結或崩潰,導致程式不可用。DoS 攻擊由耗盡資源、使伺服器或網路對合法用戶不可用、使服務器執行緩慢等多種技術組成。

+ +

DoS 攻擊的類型

+ +

DoS 攻擊更多的是一種類別而不是具體的某種方式的攻擊。如下是 DoS 攻擊類型的不完全列表: 

+ + + +

了解更多

+ + diff --git a/files/zh-tw/glossary/ecma/index.html b/files/zh-tw/glossary/ecma/index.html new file mode 100644 index 0000000000..441fc58302 --- /dev/null +++ b/files/zh-tw/glossary/ecma/index.html @@ -0,0 +1,20 @@ +--- +title: ECMA +slug: Glossary/ECMA +tags: + - Glossary + - Stub + - WebMechanics + - 'l10n:priority' +translation_of: Glossary/ECMA +--- +

Ecma International (全名 European Computer Manufacturers Association,歐洲電腦製造商協會)是一個制定電腦硬體、通訊、程式語言標準的非營利組織。

+ +

該組織維護 ECMA-262 規格(又稱 {{Glossary("ECMAScript")}}),也就是 {{Glossary("JavaScript")}} 語言的核心標準規格,而在網路上為人所知。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/ecmascript/index.html b/files/zh-tw/glossary/ecmascript/index.html new file mode 100644 index 0000000000..d27e9454e1 --- /dev/null +++ b/files/zh-tw/glossary/ecmascript/index.html @@ -0,0 +1,22 @@ +--- +title: ECMAScript +slug: Glossary/ECMAScript +tags: + - 術語 +translation_of: Glossary/ECMAScript +--- +

ECMAScript 是一種腳本語言,且 {{glossary("JavaScript")}} 奠基於此之上。Ecma International 這個組織負責將 ECMAScript 標準化。

+ +

了解更多

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/element/index.html b/files/zh-tw/glossary/element/index.html new file mode 100644 index 0000000000..0b455c993b --- /dev/null +++ b/files/zh-tw/glossary/element/index.html @@ -0,0 +1,20 @@ +--- +title: 元素 +slug: Glossary/Element +tags: + - HTML + - 術語 +translation_of: Glossary/Element +--- +

元素(element)是網頁結構的一部分。在 XML 與 HTML 中,元素可能包含資料清單、文字、圖片,或是也可能不包含東西。典型的元素會包含一個有些許屬性(attributes)的開始標籤(opening tag)、被包覆住的文字內容,以及一個結束標籤(closing tag)。
+ Example: in <p class="nice">Hello world!</p>, '<p class="nice">' is an opening tag, 'class="nice"' is an attribute and its value, 'Hello world!' is enclosed text content, and '</p>' is a closing tag.

+ +

元素與標籤是不同的概念。在原始碼中,標籤用來標注元素開始與結束,而元素其實是 {{Glossary("DOM")}} 的一部分。DOM,指文件物件模型(document object model),會由 {{glossary("browser")}} 將 DOM 呈現為網頁。

+ +

瞭解更多

+ + diff --git a/files/zh-tw/glossary/empty_element/index.html b/files/zh-tw/glossary/empty_element/index.html new file mode 100644 index 0000000000..14876af156 --- /dev/null +++ b/files/zh-tw/glossary/empty_element/index.html @@ -0,0 +1,33 @@ +--- +title: Empty element +slug: Glossary/Empty_element +tags: + - 置空元素 + - 術語表 +translation_of: Glossary/Empty_element +--- +

置空元素(empty element)是一種來自HTML、 SVG 或 MathML 不能有任何子節點 (如,嵌套元素或 文本節點)的元素({{Glossary("element")}})。

+ +

HTMLSVGMathML 規範非常精確地定義了每個元素可以包含什麼。很多組合沒有語義意義,例如 {{HTMLElement("audio")}} 元素嵌套{{HTMLElement("hr")}} 元素。

+ +

在 HTML,給置空元素使用閉合標籤是無效的。例如:<input type="text"></input> 就是無效的 HTML。

+ +

 HTML的置空元素列表如下:

+ + diff --git a/files/zh-tw/glossary/engine/index.html b/files/zh-tw/glossary/engine/index.html new file mode 100644 index 0000000000..b959e4de46 --- /dev/null +++ b/files/zh-tw/glossary/engine/index.html @@ -0,0 +1,17 @@ +--- +title: Engine +slug: Glossary/Engine +tags: + - 引擎 + - 術語表 +translation_of: Glossary/Engine +--- +

{{glossary("JavaScript")}} 引擎是解析和執行 JavaScript 程式的翻譯員。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/event/index.html b/files/zh-tw/glossary/event/index.html new file mode 100644 index 0000000000..fb95918359 --- /dev/null +++ b/files/zh-tw/glossary/event/index.html @@ -0,0 +1,24 @@ +--- +title: 事件 +slug: Glossary/event +tags: + - 事件 + - 術語表 +translation_of: Glossary/event +--- +

事件是 DOM 元素產生的事情,它可以通過 Javascript 代碼來操作.

+ +

了解更多

+ +

技術參考

+ + + +

基礎知識

+ + diff --git a/files/zh-tw/glossary/firefox_os/index.html b/files/zh-tw/glossary/firefox_os/index.html new file mode 100644 index 0000000000..050eec7eed --- /dev/null +++ b/files/zh-tw/glossary/firefox_os/index.html @@ -0,0 +1,23 @@ +--- +title: Firefox OS +slug: Glossary/Firefox_OS +tags: + - Firefox OS + - 術語表 +translation_of: Glossary/Firefox_OS +--- +

Firefox OS 是 Mozilla's 手機操作系統,基於 Linux 和 {{glossary("Mozilla Firefox","Firefox's")}} 强大的 {{glossary("Gecko")}} 渲染引擎。Firefox OS 主要由 {{glossary("Gaia")}}, {{glossary("Gecko")}}, 和 {{glossary("Gonk")}} 組成。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/firewall/index.html b/files/zh-tw/glossary/firewall/index.html new file mode 100644 index 0000000000..f2b6ce11e7 --- /dev/null +++ b/files/zh-tw/glossary/firewall/index.html @@ -0,0 +1,20 @@ +--- +title: 防火墻 +slug: Glossary/firewall +tags: + - 安全性 + - 術語表 + - 防火墻 +translation_of: Glossary/firewall +--- +

防火墻是一個過濾網路流量的系統。 它也可以根據一些特定的規則,讓它穿透或阻止它。例如,它可以阻止特定端口的傳入鏈接或者是傳出鏈接到特定的 IP 地址。 

+ +

防火墻可以像單一軟體的一樣簡單或者更複雜,就像專門的軟體,衹有防火墻一個功能。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/first-class_function/index.html b/files/zh-tw/glossary/first-class_function/index.html new file mode 100644 index 0000000000..f4f9e1d50b --- /dev/null +++ b/files/zh-tw/glossary/first-class_function/index.html @@ -0,0 +1,98 @@ +--- +title: 一級函式(First-class Function) +slug: Glossary/First-class_Function +translation_of: Glossary/First-class_Function +--- +

當函式在那個語言中可以被視為跟其他的變數一樣時,我們稱那樣的程式語言擁有一級函式。例如,函式可以作為參數傳遞到另一個函式,可以被另一個函式作為回傳值且可以被當作值一樣指派到另一個變數。

+ +

範例 | 指定函式到一個變數

+ +

JavaScript

+ +
const foo = function() {
+   console.log("foobar");
+}
+// Invoke it using the variable
+foo();
+
+ +

我們指派一個 匿名函式變數 中,然後在這個變數後面加上括弧 () 的方式來調用那個函式。

+ +
+

即使你已經為函式命名了,你仍然可以透過這個變數的名稱來調用它。有命名的函數在你除錯時是有幫助的。但是這並不會影響我們調用它的方式

+
+ +

範例 | 將函式作為參數來傳遞

+ +

JavaScript

+ +
function sayHello() {
+   return "Hello, ";
+}
+function greeting(helloMessage, name) {
+  console.log(helloMessage() + name);
+}
+// Pass `sayHello` as an argument to `greeting` function
+greeting(sayHello, "JavaScript!");
+
+ +

我們將 sayHello() 函式當成是變數傳遞到 greeting() 函式,這說明了我們將函式視為是一個   來使用它。

+ +
+

將函式作為參數傳遞到另一個函式時,被當作參數傳遞的那個函式我們稱之為回調函式 Callback function sayHello 就是一個回調函式。

+
+ +

範例 | 回傳一個函式

+ +

JavaScript

+ +
function sayHello() {
+   return function() {
+      console.log("Hello!");
+   }
+}
+
+ +

在這個例子中,我們需要從另一個函式中回傳函式回來 - 在 JavaScript 中,我們可以回傳函式是因為我們將函式當成是一個  。

+ +
+

當一個函式可以回傳一個函式時,稱之為高階函式 ( Higher-Order Function )。

+
+ +

回到剛才的例子,現在我們需要調用 sayHello 函式與它所回傳的匿名函式 (Anonymous Function)。 為了達成這個目標,我們有兩種方式:

+ +

1- 使用變數

+ +
const sayHello = function() {
+   return function() {
+      console.log("Hello!");
+   }
+}
+const myFunc = sayHello();
+myFunc();
+
+ +

這樣做的話,它會回傳 Hello! 這個訊息。

+ +
+

如果你直接調用 sayHello 的話,你必須再使用另一個變數來儲存之後再調用它,調用 sayHello 只會回傳函式回來而非調用它所回傳的函式

+
+ +

2- 使用雙括號

+ +
function sayHello() {
+   return function() {
+      console.log("Hello!");
+   }
+}
+sayHello()();
+ +

我們也可使用雙括號 ()() 來調用所回傳的函數。

+ +

Learn more

+ +

General knowledge

+ + diff --git a/files/zh-tw/glossary/first_contentful_paint/index.html b/files/zh-tw/glossary/first_contentful_paint/index.html new file mode 100644 index 0000000000..25ac67cbcb --- /dev/null +++ b/files/zh-tw/glossary/first_contentful_paint/index.html @@ -0,0 +1,15 @@ +--- +title: 首次內容繪製 +slug: Glossary/First_contentful_paint +translation_of: Glossary/First_contentful_paint +--- +

首次內容繪製 (First Contentful Paint, FCP) 是當瀏覽器從文件物件模型 (DOM) 渲染第一塊內容,第一次提供頁面正在載入的回饋給使用者。這個問題是「它發生了嗎?」當首次內容繪製完成時,答案為「是的」。

+ +

首次內容繪製時間戳記是當瀏覽器第一次渲染任何文字、圖片(包含背景圖片),以及非空白的 canvas 標籤或 SVG 向量圖片。排除任何 iframe 裡的內容,但包含等待中的網路字體 (webfonts)。意即使用者第一次開始使用頁面內容。

+ +

也可以看看:

+ + diff --git a/files/zh-tw/glossary/first_cpu_idle/index.html b/files/zh-tw/glossary/first_cpu_idle/index.html new file mode 100644 index 0000000000..c2ea874868 --- /dev/null +++ b/files/zh-tw/glossary/first_cpu_idle/index.html @@ -0,0 +1,6 @@ +--- +title: 首次 CPU 閒置 +slug: Glossary/First_CPU_idle +translation_of: Glossary/First_CPU_idle +--- +

首次 CPU 閒置 (First CPU Idle)  測量當頁面進行最小幅度的互動或適當視窗平靜到足夠處理使用者的輸入。它是一個非標準的 Google 網站效能指標。一般來說,它發生在大部分但是非必要的所有可見 UI 元素進行互動時,且使用者介面能做出回應,大多數平均的使用者輸入落在 50 毫秒。它也被稱為 First interactive 。

diff --git a/files/zh-tw/glossary/first_input_delay/index.html b/files/zh-tw/glossary/first_input_delay/index.html new file mode 100644 index 0000000000..0161930979 --- /dev/null +++ b/files/zh-tw/glossary/first_input_delay/index.html @@ -0,0 +1,15 @@ +--- +title: 首次輸入延遲 +slug: Glossary/First_input_delay +translation_of: Glossary/First_input_delay +--- +

首次輸入延遲 (First input delay, FID) 測量從使用者第一次與你的網站互動(例如當他們點選連結、按鈕或是使用自訂的 JavaScript 控制),瀏覽器實際上能夠回應此次互動的時間點。它是個在首次使用者於網頁互動以及瀏覽器回應此互動的時間長度 (以毫秒為單位)。捲動與縮放行為都不包含在這個指標。

+ +

這個時間介於內容已經在頁面繪製完成 (FCP) 以及所有功能都能夠回應使用者的互動時間。通常取決於 JavaScript 需要在主執行緒下載、剖析、以及執行,而且在缺乏裝置速度 (考慮低階行動裝置) 的情況。延遲時間越長,使用者體驗越差。縮短網站初始化時間以及預估 long tasks 有助於預估首次輸入延遲。 

+ +

也可以看看

+ + diff --git a/files/zh-tw/glossary/ftp/index.html b/files/zh-tw/glossary/ftp/index.html new file mode 100644 index 0000000000..ade332674a --- /dev/null +++ b/files/zh-tw/glossary/ftp/index.html @@ -0,0 +1,20 @@ +--- +title: FTP +slug: Glossary/FTP +tags: + - FTP + - 術語表 +translation_of: Glossary/FTP +--- +

FTP (文件傳輸協定)作爲從一個伺服器({{glossary("host")}}) 到另一個伺服器通過網路傳輸文件的標準協定({{glossary("protocol")}})很多年。不過逐漸現在很多團隊和托管賬戶不允許使用 FTP 并且使用依賴于版本控制系統如 Git 代替。你可能會發現在老的托管賬戶中仍有使用它,但確切的說, FTP不再是最佳實踐。 

+ +

了解更多

+ +

基礎知識

+ + + +

 

diff --git a/files/zh-tw/glossary/git/index.html b/files/zh-tw/glossary/git/index.html new file mode 100644 index 0000000000..06b4272e1b --- /dev/null +++ b/files/zh-tw/glossary/git/index.html @@ -0,0 +1,15 @@ +--- +title: Git +slug: Glossary/Git +translation_of: Glossary/Git +--- +

Git 是一套自由、開放原始碼,分散式原始碼管理({{Glossary("SCM", "SCM", 1)}})的工具軟體。它有助於分散式的開發團隊處理程式碼協同作業。有別於以前的原始碼管理系統,本地開發環境能處理常用的操作(分支、提交等),而無需更改主要的程式碼儲存倉庫,即使沒有寫入權限。

+ +

學習更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/grid/index.html b/files/zh-tw/glossary/grid/index.html new file mode 100644 index 0000000000..08c6263d8b --- /dev/null +++ b/files/zh-tw/glossary/grid/index.html @@ -0,0 +1,71 @@ +--- +title: Grid +slug: Glossary/Grid +translation_of: Glossary/Grid +--- +

CSS 格線(CSS grid) 使用 display: grid; 值,你可以透過 {{cssxref("grid-template-rows")}} 與 {{cssxref("grid-template-columns")}} 屬性定義格線的行(Row)與列(Column)。

+ +

使用這些屬性的格線會稱做明式格線(explicit grid)。

+ +

如果把內容放在明式格線外;或是依賴自動配置、而格線演算法要建立額外的{{glossary("grid tracks", "格線軌道")}}以支持{{glossary("grid item", "格線單元")}}的話,明式格線內就會建立額外的格線軌道。明式格線是指內容因為定義的軌道外增添,而自動建立內容的格線。

+ +

下例創建了三列兩行的明式格線。格線第三行是明式格線行軌道,它是為了讓超過六個單元的格線,能夠填滿明式格線。

+ +
+ + +
.wrapper {
+  display: grid;
+  grid-template-columns: 1fr 1fr 1fr;
+  grid-template-rows: 100px 100px;
+}
+
+ +
<div class="wrapper">
+   <div>One</div>
+   <div>Two</div>
+   <div>Three</div>
+   <div>Four</div>
+   <div>Five</div>
+   <div>Six</div>
+   <div>Seven</div>
+   <div>Eight</div>
+</div>
+
+ +

{{ EmbedLiveSample('example', '500', '330') }}

+ +

深入理解re

+ +

屬性參考

+ + + +

參閱

+ + +
diff --git a/files/zh-tw/glossary/hash/index.html b/files/zh-tw/glossary/hash/index.html new file mode 100644 index 0000000000..358c8c54ab --- /dev/null +++ b/files/zh-tw/glossary/hash/index.html @@ -0,0 +1,17 @@ +--- +title: 散列 +slug: Glossary/hash +tags: + - Hash + - 術語表 +translation_of: Glossary/hash +--- +

散列函式需要一個可變長度的消息輸入并產生一個固定長度的輸出。它通常是以128位的指紋或信息摘要的形式出現。散列對於密碼學({{glossary("cryptography")}})非常有用-它們確保了傳輸數據的完整性。這為提供消息認證的{{glossary("HMAC's")}}提供了基礎。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/head/index.html b/files/zh-tw/glossary/head/index.html new file mode 100644 index 0000000000..73baa9e8b8 --- /dev/null +++ b/files/zh-tw/glossary/head/index.html @@ -0,0 +1,19 @@ +--- +title: Head +slug: Glossary/Head +tags: + - HTML + - head + - 術語表 +translation_of: Glossary/Head +--- +

Head 是一個 {{glossary("HTML")}} 文檔的一部分,它包含了關於文檔的 {{glossary("metadata")}},如作者(author)、描述(description)、 和引入 {{glossary("CSS")}} 或 {{glossary("JavaScript")}} 文件 并將應用于HTML。

+ +

了解更多

+ +

HTML head

+ + diff --git a/files/zh-tw/glossary/hoisting/index.html b/files/zh-tw/glossary/hoisting/index.html new file mode 100644 index 0000000000..650e30013c --- /dev/null +++ b/files/zh-tw/glossary/hoisting/index.html @@ -0,0 +1,72 @@ +--- +title: 提升(Hoisting) +slug: Glossary/Hoisting +tags: + - JavaScript + - hoisting + - 提升 +translation_of: Glossary/Hoisting +--- +

提升(Hoisting)是在 ECMAScript® 2015 Language Specification 裡面找不到的專有名詞。它是一種釐清 JaveScript 在執行階段內文如何運行的思路(尤其是在創建和執行階段)。然而,提升一詞可能會引起誤解:例如,提升看起來是單純地將變數和函式宣告,移動到程式的區塊頂端,然而並非如此。變數和函數的宣告會在編譯階段就被放入記憶體,但實際位置和程式碼中完全一樣。

+ +

了解更多

+ +

技術範例

+ +

在執行任何程式碼前,JavaScript 會把函式宣告放進記憶體裡面,這樣做的優點是:可以在程式碼宣告該函式之前使用它。
例如:

+ +
function catName(name) {
+  console.log("My cat's name is " + name);
+}
+
+catName("Tigger");
+/*
+上面程式的結果是: "My cat's name is Tigger"
+*/
+
+ +

上面的程式碼片段,就是你希望程式碼運作的樣子。現在讓我們看看,如果在這一段函式宣告之前就執行它,到底會發生什麼事:

+ +
catName("Chloe");
+
+function catName(name) {
+  console.log("My cat's name is " + name);
+}
+/*
+上面程式的結果是: "My cat's name is Chloe"
+*/
+
+ +

即使我們函式的程式碼之前就先呼叫它,程式碼仍然可以運作。這是出於 JavaScript 內文執行的運作原理。

+ +

提升也適用於其他型別和變數。變數可以在宣告之前進行初始化和使用。但如果沒有初始化,就不能使用它們。

+ +

技術範例

+ +
num = 6;
+num + 7;
+var num;
+/* 只要 num 有被宣告,就不會有錯誤 */
+
+
+ +

JavaScript 僅提升宣告的部分,而不是初始化。如果在使用該變數後才宣告和初始化,那麼該值將是 undefined。以下兩個範例顯示了這個特性。

+ +
var x = 1; // 初始化 x
+console.log(x + " " + y);  // '1 undefined'
+var y = 2;
+//上下的程式結果都一樣
+
+var x = 1; // 初始化 x
+var y; // 宣告 y
+console.log(x + " " + y);  // '1 undefined'
+y = 2; // 初始化 y
+
+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/host/index.html b/files/zh-tw/glossary/host/index.html new file mode 100644 index 0000000000..c48024c384 --- /dev/null +++ b/files/zh-tw/glossary/host/index.html @@ -0,0 +1,20 @@ +--- +title: 主機 +slug: Glossary/Host +tags: + - 主機 + - 網頁 + - 術語表 +translation_of: Glossary/Host +--- +

主機是一種連接網際網路({{glossary("Internet")}})或本地網路的設備。有些稱作伺服器({{glossary("server")}})的主機還會提供額外的服務:像是提供網頁服務、存放文件和郵件。

+ +

伺服器的主機服務可以是由硬體直接產生,也可以由軟體程式產生虛擬實體。後者被稱為虛擬主機(Virtual hosting)。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/html/index.html b/files/zh-tw/glossary/html/index.html new file mode 100644 index 0000000000..c2a0dd5ed0 --- /dev/null +++ b/files/zh-tw/glossary/html/index.html @@ -0,0 +1,51 @@ +--- +title: HTML +slug: Glossary/HTML +tags: + - CodingScripting + - Glossary + - HTML + - 'l10n:priority' +translation_of: Glossary/HTML +--- +
{{QuickLinksWithSubpages("/en-US/docs/Glossary")}}
+ +

超文件標示語言(HTML,HyperText Markup Language)是用於指定網頁結構的描述性語言。

+ +

簡歷

+ +

在 1990 年,作為 Tim Berners-Lee 對{{Glossary("World Wide Web","網路")}}所知的一部分,{{Glossary("hypertext","超文本")}}的概念被定義起來了。隔年,Berners-Lee 以 {{Glossary("SGML")}} 的標記為基礎定型起來。{{Glossary("IETF")}} 於 1993 年規範了 HTML、並在 1995 年發布 2.0(第二版)。1994 年 Berners-Lee 成立了 {{Glossary("W3C")}} 以便發展網路。1996 年,W3C 接手 HTML 的工作,並在隔年發布了 HTML 3.2 Recommendation(HTML 3.2 建議)。在 1999 年發布了 HTML 4.0 並在 2000 年成為 {{Glossary("ISO")}} 標準。

+ +

這段期間,偏好 {{Glossary("XHTML")}} 的 W3C 幾乎拋棄了 HTML,使得 2004 年一個稱作 {{Glossary("WHATWG")}} 的獨立團體成立起來。也因為 WHATWG 的努力,{{Glossary("HTML5")}} 的工作持續進行:兩個組織在 2008 年發布了第一份草稿、最終標準則在 2014 年實行。

+ +

概念及語法

+ +

HTML 是個以{{Glossary("element","元素")}}構成的純文字文件。元素通常被開啟與關閉的{{Glossary("tag","標籤")}}包覆起來。每個標籤都以角括號(<>)作為開始與結束。不過,也有些不包覆任何文件的空標籤(empty or void tag),例如 {{htmlelement("img")}}。

+ +

你可以透過{{Glossary("attribute","屬性")}}擴展 HTML 標籤,它能提供附加訊息,以改變瀏覽器的解釋方法:

+ +

HTML 元素的結構資訊

+ +

HTML 文件的副檔名通常存為 .htm 或是 .html。它們會放在{{Glossary("伺服器","網頁伺服器")}}上運作、並由{{Glossary("瀏覽器")}}渲染。

+ +

深入了解

+ +

基本知識

+ + + +

學習 HTML

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/html5/index.html b/files/zh-tw/glossary/html5/index.html new file mode 100644 index 0000000000..60f627a355 --- /dev/null +++ b/files/zh-tw/glossary/html5/index.html @@ -0,0 +1,16 @@ +--- +title: HTML5 +slug: Glossary/HTML5 +tags: + - HTML + - HTML5 + - 術語表 +translation_of: Glossary/HTML5 +--- +

{{Glossary("HTML")}} 最新的穩定版本, HTML5 將 HTML 從簡單的文檔結構標記帶領到全app 開發平臺。新增了更多其他的功能, HTML5 包含了新的元素和{{glossary("JavaScript")}} {{glossary("API","APIs")}},它們提高了存儲、多媒體和硬體訪問的效率。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/http/index.html b/files/zh-tw/glossary/http/index.html new file mode 100644 index 0000000000..fadef9e26f --- /dev/null +++ b/files/zh-tw/glossary/http/index.html @@ -0,0 +1,13 @@ +--- +title: HTTP +slug: Glossary/HTTP +translation_of: Glossary/HTTP +--- +

超文字傳輸協定(HyperText Transfer Protocol、HTTP)是能在{{glossary("World Wide Web","全球資訊網")}}發起文件傳輸的基本{{glossary("protocol","協定")}}。HTTP 屬於文本性(所有交流都透過純文字完成)及無狀態(所有交流都不會記得上一次的交流)的。

+ +

深入了解

+ + diff --git a/files/zh-tw/glossary/identifier/index.html b/files/zh-tw/glossary/identifier/index.html new file mode 100644 index 0000000000..7cb9add9f3 --- /dev/null +++ b/files/zh-tw/glossary/identifier/index.html @@ -0,0 +1,19 @@ +--- +title: 識別字 +slug: Glossary/Identifier +tags: + - 術語表 + - 識別字 +translation_of: Glossary/Identifier +--- +

字符中的代碼序列定義了變數({{glossary("variable")}})、函式({{glossary("function")}}) 或屬性({{glossary("property")}})。

+ +

在 {{glossary("JavaScript")}} 中, 識別字衹能包含字母數字字符 (或 "$" 或 "_"),并不能以數字開頭。識別字不同於字符串,字符串是數據而識別字是代碼的一部分 。在 JavaScript 中,沒有辦法把識別字轉換為字符串,但有時候可能把字符串解析為識別碼。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/iife/index.html b/files/zh-tw/glossary/iife/index.html new file mode 100644 index 0000000000..10c20fbf91 --- /dev/null +++ b/files/zh-tw/glossary/iife/index.html @@ -0,0 +1,69 @@ +--- +title: IIFE +slug: Glossary/IIFE +translation_of: Glossary/IIFE +--- +

IIFE (Immediately Invoked Function Expression) 是一個定義完馬上就執行的 {{glossary("JavaScript")}} {{glossary("function")}}。

+ +

他又稱為 {{glossary("Self-Executing Anonymous Function")}},也是一種常見的設計模式,包含兩個主要部分:第一個部分是使用{{jsxref("Operators/Grouping", "Grouping Operator")}} () 包起來的 anonymous function。這樣的寫法可以避免裡面的變數污染到 global scope。

+ +

第二個部分是馬上執行 function 的 expression (),JavaScript 引擎看到它就會立刻轉譯該 function。

+ +

Examples

+ +

Function 轉換為 expression 形式,並且馬上執行,function scope 內的變數在外面是無法存取的。

+ +
(function () {
+    var aName = "Barry";
+})();
+// Variable name is not accessible from the outside scope
+aName // throws "Uncaught ReferenceError: aName is not defined"
+
+ +

把 IIFE 只配給變數會儲存它的結果,而非 function 本身

+ +
var result = (function () {
+    var name = "Barry";
+    return name;
+})();
+// Immediately creates the output:
+result; // "Barry"
+ +

其它形式

+ +

符合 JSLint 的版本,行為一樣,只有語意略有差異:

+ +
(function () {
+    var aName = "Barry";
+}());
+
+ +

Arrow function 版本,程式碼更為精簡,行為一致:

+ +
(() => {
+    var aName = "Barry";
+})();
+ +

Async function 版本,目前主要為了 top level await 而使用:

+ +
(async function () {
+    var aName = "Barry";
+})();
+
+(async () => {
+    var aName = "Barry";
+})();
+ +

更多資訊

+ +

學習它

+ + + +

基本知識

+ + diff --git a/files/zh-tw/glossary/immutable/index.html b/files/zh-tw/glossary/immutable/index.html new file mode 100644 index 0000000000..5bf9879041 --- /dev/null +++ b/files/zh-tw/glossary/immutable/index.html @@ -0,0 +1,22 @@ +--- +title: Immutable +slug: Glossary/Immutable +translation_of: Glossary/Immutable +--- +

我們在說一個不可變的{{glossary("物件")}},意思就是這樣的物件內容部會被改變。

+ +

在多數情況下會要使物件成為immutable,例如:

+ + + +

了解更多

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/index.html b/files/zh-tw/glossary/index.html new file mode 100644 index 0000000000..e09fd53b7c --- /dev/null +++ b/files/zh-tw/glossary/index.html @@ -0,0 +1,25 @@ +--- +title: 術語表 +slug: Glossary +tags: + - Beginner + - Glossary + - Index + - TopicStub +translation_of: Glossary +--- +
{{LearnBox({"title":"Learn a new term:"})}}
+ +

網路技術包含了一長串的術語以及縮寫,這些會被使用在文件跟程式碼中。此術語表提供你需要知道的辭彙與縮寫的定義,以便能成功理解和建構網路。

+ +

{{GlossaryList({"split":"h3", "css":"multiColumnList"})}}

+ +

為術語表作貢獻

+ +

這個術語表永遠不會寫完。你可以幫忙撰寫新術語或是改寫現有的術語。最簡單的開始方法,就是按下面的按鈕,或是點選其中一個術語。

+ +

撰寫新的術語

+ +

{{GlossaryList({"terms":["at-rule","Attack","Character set","cryptosystem","debug","digital signature","execution","flex-direction","fork","GLSL","Grid Container","Interface", "Intrinsic size","Library","Memory management","Public-key crytography","routers","RTP","RTSP","Self-Executing Anonymous Function","Stylesheet","Symmetric-key cryptography","Vector image"], "filter":"notdefined", "css":"multiColumnList"})}}

+ +

如果想知道如何建設術語表,請看看術語表文件的進度頁面

diff --git a/files/zh-tw/glossary/indexeddb/index.html b/files/zh-tw/glossary/indexeddb/index.html new file mode 100644 index 0000000000..3da56fa08c --- /dev/null +++ b/files/zh-tw/glossary/indexeddb/index.html @@ -0,0 +1,20 @@ +--- +title: IndexedDB +slug: Glossary/IndexedDB +tags: + - API + - Sql + - 'l10n:priority' + - 撰寫程式 + - 術語表 + - 資料庫 +translation_of: Glossary/IndexedDB +--- +

IndexedDB 是一個用來在瀏覽器內儲存大型數據結構,並對其建立索引以高效查詢的 Web {{glossary("API")}}。類似基於 {{glossary("SQL")}} 的 關連式資料庫管理系統(RDBMS), IndexedDB 是一套交易式資料庫系統。然而,它使用 {{glossary("JavaScript")}} 物件而非固定欄位的資料表來記錄資料。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/ip_address/index.html b/files/zh-tw/glossary/ip_address/index.html new file mode 100644 index 0000000000..1bc874eb9a --- /dev/null +++ b/files/zh-tw/glossary/ip_address/index.html @@ -0,0 +1,21 @@ +--- +title: IP 位址 +slug: Glossary/IP_Address +tags: + - Beginner + - Glossary + - Infrastructure + - Web +translation_of: Glossary/IP_Address +--- +

IP 位址是一組分配給所有使用網際網路通訊協定的裝置的編號。

+ +

在 IPv6 被更廣泛採用前,「IP 位址」一般來說指的仍然是 32 位元長度的 IPv4 位址。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/jank/index.html b/files/zh-tw/glossary/jank/index.html new file mode 100644 index 0000000000..68af9b8f07 --- /dev/null +++ b/files/zh-tw/glossary/jank/index.html @@ -0,0 +1,6 @@ +--- +title: Jank +slug: Glossary/Jank +translation_of: Glossary/Jank +--- +

Jank 是在講用戶介面的執行緩慢,主因是主執行緒的執行過久、或是遭到封鎖的渲染、抑或在後台進程上,花費太多的處理器能力。

diff --git a/files/zh-tw/glossary/java/index.html b/files/zh-tw/glossary/java/index.html new file mode 100644 index 0000000000..0675ad405f --- /dev/null +++ b/files/zh-tw/glossary/java/index.html @@ -0,0 +1,23 @@ +--- +title: Java +slug: Glossary/Java +tags: + - Java + - 術語表 +translation_of: Glossary/Java +--- +

Java 是一個{{glossary("Compile", "編譯式")}}、{{glossary("OOP", "物件導向")}}、可攜性高的{{Glossary("computer programming", "程式設計")}}語言。

+ +

Java 屬於靜態型別,並具有類 C 的語法。它還有個稱作 Java 軟體開發套件(Java Software Development Kit, SDK)的函式庫,裡面有很多易於使用的功能包。

+ +

程式只提前{{glossary("Compile", "編譯")}}一次,編譯成專有的字節碼和包格式,接著在 Java 虛擬機(Java Virtual Machine, JVM)內部執行。JVM 支持跨平台,這使得 Java 程式幾乎可以在任何地方運行,而無需再次編譯或打包。這個特性使它成為很多大型企業的首選,但也可能會被認為過於「沉重」。

+ +

了解更多

+ +

基礎知識

+ + + +
{{QuickLinksWithSubpages("/zh-TW/docs/Glossary")}}
diff --git a/files/zh-tw/glossary/javascript/index.html b/files/zh-tw/glossary/javascript/index.html new file mode 100644 index 0000000000..0e0f970f4d --- /dev/null +++ b/files/zh-tw/glossary/javascript/index.html @@ -0,0 +1,41 @@ +--- +title: JavaScript +slug: Glossary/JavaScript +translation_of: Glossary/JavaScript +--- +

JavaScript(JS)是個程式語言。通常用於用戶端(client-side)的動態網頁腳本,不過也常藉由 Node.js 之類的軟體包,使用到{{Glossary("Server","伺服器")}}端(Server-side)。

+ +

不要把 JavaScript 與 {{interwiki("wikipedia", "Java")}} 這兩個程式語言混淆了。雖然「Java」與「JavaScript」都是甲骨文公司(Oracle)在美國和其他國家或地區註冊的商標,但這兩個程式語言在語法、語意、還有用處上,都有極大的不同。

+ +

前 Netscape 員工 Brendan Eich 原本想讓 JavaScript 成為伺服器端語言。但 JavaScript 卻在 1995 年九月於 Netscape Navigator 2.0 降生並得到隨之而來的成功。{{glossary("Microsoft Internet Explorer", "Internet Explorer 3.0")}} 也在 1996 年八月以 JScript 的名義支援 JavaScript。

+ +

1996 年十一月,Netscape 開始與 ECMA International 合作以期使 JavaScript 成為行業標準(industry standard)。從此以後,標準化的 JavaScript 就被稱為 ECMAScript 並規範在 ECMA-262 之下,其最新的第八版於 2017 年六月生效。

+ +

JavaScript 通常用於瀏覽器,使開發者能透過 {{Glossary("DOM")}} 操縱網頁內容、或透過 {{Glossary("AJAX")}} 與 {{Glossary("IndexedDB")}} 操縱資料;還可以用它在 {{Glossary("canvas")}} 上面繪圖、透過各種 {{Glossary("API","API")}} 與各種設備的瀏覽器交流……等等。由於近年各大瀏覽器的增長、以及 {{Glossary("API","APIs")}} 的效能改進,JavaScript 成了全世界最常用的程式語言之一。

+ +

最近,JavaScript 挾著非瀏覽器跨平台執行環境 Node.js 的巨大成功,重返了伺服器世界。電腦上的 Node.js 能讓 JavaScript 作為腳本語言使用以處理自動化。另外,還可以組建完整的 {{Glossary("HTTP")}} 與 {{Glossary("Web Sockets")}} 伺服器。

+ +

深入了解

+ +

基本知識

+ + + +

學習 JavaScript

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/jpeg/index.html b/files/zh-tw/glossary/jpeg/index.html new file mode 100644 index 0000000000..987a570df4 --- /dev/null +++ b/files/zh-tw/glossary/jpeg/index.html @@ -0,0 +1,14 @@ +--- +title: JPEG +slug: Glossary/jpeg +translation_of: Glossary/jpeg +--- +

JPEG(Joint Photographic Experts Group,聯合圖像專家小組)通常指是一種圖片的失真壓縮法。

+ +

深入理解

+ +

一般資訊

+ + diff --git a/files/zh-tw/glossary/jquery/index.html b/files/zh-tw/glossary/jquery/index.html new file mode 100644 index 0000000000..66c7f1035e --- /dev/null +++ b/files/zh-tw/glossary/jquery/index.html @@ -0,0 +1,42 @@ +--- +title: jQuery +slug: Glossary/jQuery +translation_of: Glossary/jQuery +--- +

jQuery 是專精於簡化 {{Glossary("DOM")}}、{{Glossary("AJAX")}}、與 {{Glossary("Event")}} 操作的 {{Glossary("JavaScript")}} {{Glossary("函式庫")}}。

+ +

jQuery 用 $(selector).action() 格式,指派元素到指定的事件。詳細來說, $(selector) 會呼叫 jQuery 選取 selector 元素,並指派它到稱作 .action() 事件的 {{Glossary("API")}}。

+ +
$(document).ready(function(){
+  alert("Hello World!");
+  $("#blackBox").hide();
+});
+ +

上面這段 jQuery 程式碼,會執行與這段原生 JavaScript 程式碼相同的事情:

+ +
window.onload = function() {
+  alert("Hello World!");
+  document.getElementById("blackBox").style.display = "none";
+};
+ +

或這段:

+ +
window.addEventListener("load", () => {
+  alert("Hello World!");
+  document.getElementById("blackBox").style.display = "none";
+});
+ +

深入理解

+ +

基本知識

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/json/index.html b/files/zh-tw/glossary/json/index.html new file mode 100644 index 0000000000..776ffecdcb --- /dev/null +++ b/files/zh-tw/glossary/json/index.html @@ -0,0 +1,29 @@ +--- +title: JSON +slug: Glossary/JSON +tags: + - CodingScripting + - Glossary + - Intro + - JSON +translation_of: Glossary/JSON +--- +

JavaScript Object NotationJSON)是一種資料交換格式。JSON 的語法非常接近 {{Glossary("JavaScript")}},但嚴格上來說 JSON 並不是 JavaScript 的一個子集。許多程式語言都支援 JSON,不過 JSON 在基於 JavaScript 的應用程式(包含網站和瀏覽器擴充功能)中特別有用。

+ +

JSON 可以表示數字、布林值、字串、null、陣列(一些有順序的數值),以及由這些數值所組成的物件(字串和數值的對應表)。原生的 JSON 不能用來表示較複雜的資料,像是函式、正規表達式、日期等。(日期物件可以被序列化成為 ISO 格式的日期字串,不會完全遺失資料。)如果你需要 JSON 來表示這些額外的資料類型,請在他們序列或反序列化時轉換數值。

+ +

JSON 和 XML 很像,能夠儲存傳統 CSV 格式不能儲存的多層級資料。有許多工具可以互相轉換這些格式,例如 JSON to CSV Converter

+ +

了解更多

+ +

基礎知識

+ + + +

技術資料

+ + diff --git a/files/zh-tw/glossary/key/index.html b/files/zh-tw/glossary/key/index.html new file mode 100644 index 0000000000..70c8f5c612 --- /dev/null +++ b/files/zh-tw/glossary/key/index.html @@ -0,0 +1,20 @@ +--- +title: Key +slug: Glossary/Key +tags: + - Key + - 安全性 + - 術語表 +translation_of: Glossary/Key +--- +

密鑰是密碼({{Glossary("cipher")}})用於加密({{Glossary("encryption")}}) 和/或解密({{Glossary("decryption")}})的一條信息。 關於加密系統({{Glossary("cryptosystem")}})的所有加密信息都應該保持安全,除了密鑰,這是公共的認知。

+ +

在對稱密鑰密碼學({{Glossary("symmetric-key cryptography")}})中,同時使用相同的密鑰加解密。在公共密鑰密碼學({{Glossary("public-key cryptography")}})中,存在一對作為公鑰和私鑰的相關密鑰。公鑰是免費提供的,而私鑰則是保密的。公鑰可以對只有相應私鑰解密的信息加密,反之亦然。

+ +

了解更多

+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/keyword/index.html b/files/zh-tw/glossary/keyword/index.html new file mode 100644 index 0000000000..53e51ca354 --- /dev/null +++ b/files/zh-tw/glossary/keyword/index.html @@ -0,0 +1,19 @@ +--- +title: 關鍵詞 +slug: Glossary/Keyword +tags: + - 術語表 + - 關鍵詞 +translation_of: Glossary/Keyword +--- +

關鍵詞是描述内容的字或短語。在綫關鍵詞被用於搜索引擎的查詢或用來識別站點上的内容.

+ +

當你使用搜索引擎,你會使用指定的關鍵詞來搜索你想查找的東西,搜索引擎根據關鍵詞來返回相關的結果頁。爲了搜索到更精準的結果,需要嘗試更多指定的關鍵詞,如使用 "Blue Mustang GTO" 代替簡單的 "Mustang"。網頁也可以用 meta 標簽(寫在 {{htmlelement("head")}}使用關鍵詞描述頁面的内容,它可以使搜索引擎更好的定義和組織網頁。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/ligature/index.html b/files/zh-tw/glossary/ligature/index.html new file mode 100644 index 0000000000..a3909276cc --- /dev/null +++ b/files/zh-tw/glossary/ligature/index.html @@ -0,0 +1,16 @@ +--- +title: Ligature +slug: Glossary/Ligature +translation_of: Glossary/Ligature +--- +

所謂「連字」(ligature),即是將兩個字母整合為單一字母。以法文的「œ」為例,即是「o」與「e」的連字。

+ +

你可使用 {{cssxref("font-variant-ligatures")}} 在自己的網頁上設計出連字。

+ +

Learn more

+ +

General knowledge

+ + diff --git a/files/zh-tw/glossary/localization/index.html b/files/zh-tw/glossary/localization/index.html new file mode 100644 index 0000000000..01a4dec5ac --- /dev/null +++ b/files/zh-tw/glossary/localization/index.html @@ -0,0 +1,63 @@ +--- +title: 在地化 +slug: Glossary/Localization +tags: + - 本地化 +translation_of: Glossary/Localization +--- +

 

+ +
+

在地化 (Localization)(有時稱本地化)是將程式介面由一種語言翻譯成另一種語言,並調整各部份為適合當地文化及習慣的過程。下面的資源可協助建立 Mozilla 相關程式或套件的在地化工作。

+
+ + + + + + + + +
+

精選文件

+ +
+
XUL 教學:在地化
+
XUL 教學 中提到如何在地化 XUL 程式的小節。
+
+ +
+
XUL 教學:Property 檔案
+
XUL 教學 中解釋如何使用 Property 檔案的小節。
+
+ +
+
撰寫可在地化的程式碼
+
本文提供程式設計師們關於在地化的練習和撰寫準則。
+
+ +
+
如何翻譯套件敘述
+
想要翻譯套件敘述(就是擴充套件視窗中套件名稱下面的說明),你需要用特殊的 prefreence key 才能蓋掉 install.rdf 檔中原來的英文敘述。本文會教你如何修改 preference key。
+
+ +

所有文件...

+
+

其他頁面

+ + + +

相關主題

+ +
+
擴充套件, XUL
+
+ +

 

+
+ +
 
diff --git a/files/zh-tw/glossary/mathml/index.html b/files/zh-tw/glossary/mathml/index.html new file mode 100644 index 0000000000..0005ad20de --- /dev/null +++ b/files/zh-tw/glossary/mathml/index.html @@ -0,0 +1,23 @@ +--- +title: MathML +slug: Glossary/MathML +tags: + - MathML + - 術語表 +translation_of: Glossary/MathML +--- +

MathML (一種 {{glossary("XML")}} 應用程式)是一種在網頁上表示數學表達式的開放標準。在 1998 年 W3C 第一次在瀏覽器({{glossary("browser")}})推薦了 MathML 表示數學表達式。 MathML還有其他應用程式,它包括了科學内容和聲音合成。 

+ +

了解更多 

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/mime_type/index.html b/files/zh-tw/glossary/mime_type/index.html new file mode 100644 index 0000000000..cb2af73d63 --- /dev/null +++ b/files/zh-tw/glossary/mime_type/index.html @@ -0,0 +1,32 @@ +--- +title: MIME type +slug: Glossary/MIME_type +tags: + - MIME Types + - 内容類型 + - 媒體類型 + - 術語表 +translation_of: Glossary/MIME_type +--- +

MIME 類型 (現在被更準確的稱作「媒體類型」(media type),但有時也被稱作「内容類型」(content type)) 是一種隨附文件發送的標識字符串。它主要用於標示文件類型、描述內容的類型:例如說,一個聲音文件就可能標為audio/ogg、或者圖像檔案就可能是 image/png

+ +

它的目的與 Microsoft Windows 的副檔名相似。裡面的名字,是源自最初用於 E-Mail 的 MIME 標準。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/mvc/index.html b/files/zh-tw/glossary/mvc/index.html new file mode 100644 index 0000000000..28dcae8a52 --- /dev/null +++ b/files/zh-tw/glossary/mvc/index.html @@ -0,0 +1,28 @@ +--- +title: MVC +slug: Glossary/MVC +translation_of: Glossary/MVC +--- +

模型─視圖─控制器(Model-View-Controller, MVC)是個軟體設計模式。它強調把軟體的行事邏輯與排版顯示分離(也就是關注點分離,Separation of concerns),如此一來開發者們就可以輕鬆分派工作、以及維護專案。有些設計模式也基於 MVC,像是 MVVM(Model-View-ViewModel)、MTP(Model-View-Presenter)、and MVW(Model-View-Whatever) 等等。

+ +

MVC 在定義方面有爭議,但通常會包含:

+ +
    +
  1. 模型(Model):包含資料、或是軟體的行事邏輯。行事邏輯可以有演算法、與資料庫的溝通等。
  2. +
  3. 視圖(View):包含軟體的排版與顯示。
  4. +
  5. 控制器(Controller):包含軟體的行事邏輯、或是連接模型與視圖。
  6. +
+ +

深入理解

+ +

基本知識

+ + + +

學習 MVC

+ + diff --git a/files/zh-tw/glossary/node.js/index.html b/files/zh-tw/glossary/node.js/index.html new file mode 100644 index 0000000000..0d9524750f --- /dev/null +++ b/files/zh-tw/glossary/node.js/index.html @@ -0,0 +1,22 @@ +--- +title: Node.js +slug: Glossary/Node.js +translation_of: Glossary/Node.js +--- +

Node.js 為 {{Glossary("JavaScript")}} 跨平台執行環境,可讓開發者建立伺服器端 JavaScript 網路程式。

+ +

了解詳情

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/null/index.html b/files/zh-tw/glossary/null/index.html new file mode 100644 index 0000000000..721877299c --- /dev/null +++ b/files/zh-tw/glossary/null/index.html @@ -0,0 +1,26 @@ +--- +title: 'Null' +slug: Glossary/Null +tags: + - 'Null' + - 術語表 +translation_of: Glossary/Null +--- +

在計算機科學裏,一個 null 值代表了一個參考,通常是指一個不存在的或無效的物件({{glossary("object")}})或地址。在語言實現中空值引用的含義各不相同。

+ +

在 {{Glossary("JavaScript")}} 中, null 是一種原始值({{Glossary("Primitive", "primitive values")}})。

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/number/index.html b/files/zh-tw/glossary/number/index.html new file mode 100644 index 0000000000..39c76cb579 --- /dev/null +++ b/files/zh-tw/glossary/number/index.html @@ -0,0 +1,27 @@ +--- +title: Number +slug: Glossary/Number +tags: + - JavaScript + - Number + - 術語表 +translation_of: Glossary/Number +--- +

在 {{Glossary("JavaScript")}}, Number 是雙精度64位浮點格式(IEEE 754)中的數字數據類型。在其他編程語言中可以存在不同的數字類型,如:整型(Integers)、浮點型(Floats)、雙精度型(Doubles)、 或 大數型(Bignums).

+ +

了解更多

+ +

基礎知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/object/index.html b/files/zh-tw/glossary/object/index.html new file mode 100644 index 0000000000..b6e4fdc39d --- /dev/null +++ b/files/zh-tw/glossary/object/index.html @@ -0,0 +1,18 @@ +--- +title: 物件 +slug: Glossary/Object +tags: + - Glossary +translation_of: Glossary/Object +--- +

物件(Object)是一個包含資料與處理資料指令的資料結構。物件有時是指真實世界的東西,像是賽車遊戲的車子 car 或地圖 map 物件。{{glossary("JavaScript")}}、Java、C++、Python、Ruby 都是 {{glossary("OOP","物件導向程式設計")}} 的語言例子。

+ +

了解更多

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/oop/index.html b/files/zh-tw/glossary/oop/index.html new file mode 100644 index 0000000000..d2fc69a0c0 --- /dev/null +++ b/files/zh-tw/glossary/oop/index.html @@ -0,0 +1,15 @@ +--- +title: 物件導向程式設計 +slug: Glossary/OOP +translation_of: Glossary/OOP +--- +

物件導向程式設計(Object-Oriented Programming、OOP)是一種程式設計方法。其將資料封裝(encapsulate)於物件({{glossary("object","objects")}})中,我們需透過物件間接操作這些被封裝的內部資料,而非直接操作資料本身。

+ +

{{glossary("JavaScript")}}為重度物件導向語言,其遵循 prototype-based model與 class-based 相對

+ +

相關文章

+ + diff --git a/files/zh-tw/glossary/opera_browser/index.html b/files/zh-tw/glossary/opera_browser/index.html new file mode 100644 index 0000000000..37bbc8e9eb --- /dev/null +++ b/files/zh-tw/glossary/opera_browser/index.html @@ -0,0 +1,21 @@ +--- +title: Opera 瀏覽器 +slug: Glossary/Opera_Browser +tags: + - Browser + - Glossary + - Navigation + - Opera + - Opera Browser +translation_of: Glossary/Opera_Browser +--- +

Opera 是最常使用的 {{glossary("browser")}} 第五名,1996 年正式推出,一開始僅能在 Windows 使用。Opera 自 2013 年起使用 {{glossary("Blink")}} 排版引擎,在那之前使用的是 {{glossary("Presto")}}。Opera 也有提供行動與平板電腦版本。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/parameter/index.html b/files/zh-tw/glossary/parameter/index.html new file mode 100644 index 0000000000..0cd6c5abfd --- /dev/null +++ b/files/zh-tw/glossary/parameter/index.html @@ -0,0 +1,38 @@ +--- +title: 參數 +slug: Glossary/Parameter +translation_of: Glossary/Parameter +--- +

參數 (parameter) 是個會傳進函式 ({{Glossary("function")}}) 的已命名變量,用來把引數 (({{Glossary("argument","arguments")}})) 導入到函式中。

+ +

要特別注意參數和引數的差異:

+ + + +

 一般而言,參數的形式有兩種表示方式:

+ +
+
輸入用的參數
+
像這樣藉由值呼叫的形式最常見。此外,還可以根據不同的程式語言,讓輸入用參數的使用模式多樣,例如:用值呼叫 (call-by-value)、用位置呼叫 (call-by-address) 和完成函式程序後把它的值設定成回傳值 (也就是 call-by-reference)。
+
輸出和回傳 (return) 用的函數
+
在函式的程序完成之後,會負責回傳多重的量值。不過,這方式可能會讓程式開發者誤解它的意思,所以不建議使用。
+
+ +

想了解更多嗎?

+ +

一般常識篇

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/php/index.html b/files/zh-tw/glossary/php/index.html new file mode 100644 index 0000000000..1b27ff0c82 --- /dev/null +++ b/files/zh-tw/glossary/php/index.html @@ -0,0 +1,55 @@ +--- +title: PHP +slug: Glossary/PHP +translation_of: Glossary/PHP +--- +

PHP(PHP: Hypertext Preprocessor 的遞歸縮寫,意為「PHP:超文字預處理器」)是一個開源的伺服器端腳本語言,可用於建制網頁應用和動態網站。

+ +

範例

+ +

基本語法

+ +
  // PHP 程式開始
+<?php
+     // PHP 程式在此執行
+ ?>
+// PHP 程式結束
+ +

在螢幕上印東西

+ +
<?php
+   echo "Hello World!";
+?>
+ +

PHP 變數

+ +
​​​​​​​​​​​​​​<?php
+ // 變數
+ $nome='Danilo';
+ $sobrenome='Santos';
+ $pais='Brasil';
+ $email='danilocarsan@gmailcom';
+​​​​​​​
+ // 印出變數
+ echo $nome;
+ echo $sobrenome;
+ echo $pais;
+ echo $email;
+?>
+ + diff --git a/files/zh-tw/glossary/png/index.html b/files/zh-tw/glossary/png/index.html new file mode 100644 index 0000000000..d5950fffcd --- /dev/null +++ b/files/zh-tw/glossary/png/index.html @@ -0,0 +1,17 @@ +--- +title: PNG +slug: Glossary/PNG +tags: + - PNG + - 術語表 +translation_of: Glossary/PNG +--- +

PNG (便攜式網路圖形) 是一種支持無損數據壓縮的圖片文件格式。

+ +

了解更多

+ +

基礎知識

+ + diff --git a/files/zh-tw/glossary/pop/index.html b/files/zh-tw/glossary/pop/index.html new file mode 100644 index 0000000000..3cb09f9be1 --- /dev/null +++ b/files/zh-tw/glossary/pop/index.html @@ -0,0 +1,22 @@ +--- +title: POP3 +slug: Glossary/POP +tags: + - POP3 + - 基礎 + - 術語表 +translation_of: Glossary/POP +--- +

POP3 (郵局協定)是一種常見協定({{glossary("protocol")}}) 用於從伺服器接收郵件通過 {{glossary("TCP")}} 鏈接.不同於{{Glossary("IMAP4")}}, 由於POP3 結構更爲複雜,更難以實施,POP3 不支持多資料夾。

+ +

客戶端通常會從伺服器取回所有的訊息然後刪除伺服器上的訊息,但是 POP3 允許伺服器保留副本。目前幾乎所有的郵件伺服器和客戶端都支持 POP3.

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/port/index.html b/files/zh-tw/glossary/port/index.html new file mode 100644 index 0000000000..17359cc5bb --- /dev/null +++ b/files/zh-tw/glossary/port/index.html @@ -0,0 +1,23 @@ +--- +title: 通訊埠 +slug: Glossary/Port +tags: + - Glossary + - Intro + - Security + - computer network + - 'l10n:priority' + - port +translation_of: Glossary/Port +--- +

對使用 {{Glossary("IP address")}} 連線到網路的電腦來說,通訊埠是傳輸時的端點。我們可用不同的數字(通訊埠號)來分辨不同的通訊埠,而小於 1024 號的每個埠通常都有自己預設使用的 {{Glossary("protocol")}}。

+ +

舉例來說,{{Glossary("HTTP")}} 通訊協定的預設埠號是 80,而 HTTPS 通訊協定預設的埠號是 443,這麼 {{Glossary("HTTP")}} 伺服器預設就會在這些通訊埠上等待請求。網際網路上的每個通訊協定都會有自己的預設通訊埠: {{Glossary("SMTP")}} (25)、{{Glossary("POP3")}} (110)、{{Glossary("IMAP")}} (143)、{{Glossary("IRC")}} (194) 等等。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/presto/index.html b/files/zh-tw/glossary/presto/index.html new file mode 100644 index 0000000000..d9b68c2b21 --- /dev/null +++ b/files/zh-tw/glossary/presto/index.html @@ -0,0 +1,18 @@ +--- +title: Presto +slug: Glossary/Presto +tags: + - Glossary + - Infrastructure + - Opera + - Presto + - 'l10n:priority' +translation_of: Glossary/Presto +--- +

Presto 是 {{Glossary("Opera browser")}} 原本使用的專屬排版引擎, Opera 瀏覽器 15 版起改用以 Chromium 為基礎的 {{Glossary('Blink')}} 排版引擎。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/progressive_enhancement/index.html b/files/zh-tw/glossary/progressive_enhancement/index.html new file mode 100644 index 0000000000..95f72a2d1d --- /dev/null +++ b/files/zh-tw/glossary/progressive_enhancement/index.html @@ -0,0 +1,14 @@ +--- +title: 漸進增強 +slug: Glossary/Progressive_Enhancement +translation_of: Glossary/Progressive_Enhancement +--- +

漸進增強(Progressive enhancement)是強調要在受限情境下提供初等體驗、對所有人提供必要的內容與功能、以及需要時再加上其他可選功能的設計哲學。它更接近於強調無障礙、以及許多腳本技術的網站設計策劃。這個技術很有用,因為它讓網路開發者,在專注開發最強大的網站同時,和某些未知的用戶代理,在訪問網站時發生的問題間達到權衡。

+ +

了解詳情

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/property/index.html b/files/zh-tw/glossary/property/index.html new file mode 100644 index 0000000000..50ccfe72ce --- /dev/null +++ b/files/zh-tw/glossary/property/index.html @@ -0,0 +1,13 @@ +--- +title: 屬性 +slug: Glossary/property +tags: + - Disambiguation + - Glossary + - NeedsTranslation + - TopicStub +translation_of: Glossary/property +--- +

根據所屬情境的不同,「屬性(Property)」可代表不同的意思。可能是:

+ +

{{GlossaryDisambiguation}}

diff --git a/files/zh-tw/glossary/property/javascript/index.html b/files/zh-tw/glossary/property/javascript/index.html new file mode 100644 index 0000000000..8bd94bccf9 --- /dev/null +++ b/files/zh-tw/glossary/property/javascript/index.html @@ -0,0 +1,22 @@ +--- +title: Property (JavaScript) +slug: Glossary/property/JavaScript +translation_of: Glossary/property/JavaScript +--- +

property(屬性)是典型的物件特徵,經常與資料結構聯結。屬性分為兩種類型:

+ + + +

屬性擁有一個名字(為{{glossary("string", "字串")}})以及值(可以是{{glossary("primitive", "基本資料型別")}}、{{glossary("method", "方法")}}或是{{glossary("object reference", "物件參考")}})。請注意,當我們說「一個屬性保存著物件」,其實是指「一個屬性保存著物件的參考(reference)」。這其中的差別在於,當你改變屬性中的值的時候,所指向的物件實體之值也會改變。

+ +

了解詳情

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/protocol/index.html b/files/zh-tw/glossary/protocol/index.html new file mode 100644 index 0000000000..e4487bc543 --- /dev/null +++ b/files/zh-tw/glossary/protocol/index.html @@ -0,0 +1,21 @@ +--- +title: 通訊協定 +slug: Glossary/Protocol +tags: + - Glossary + - Infrastructure + - Protocols +translation_of: Glossary/Protocol +--- +

通訊協定是一套定義在電腦內部或兩台電腦間,如何交換資料的系統化規則。不同的裝置若需進行溝通,就需要先確認好要交換的資料格式與交換方法,而這些定義好的格式與方法就是通訊協定。

+ +

了解更多

+ +

一般知識

+ + + +

 

diff --git a/files/zh-tw/glossary/prototype/index.html b/files/zh-tw/glossary/prototype/index.html new file mode 100644 index 0000000000..94f5b421b8 --- /dev/null +++ b/files/zh-tw/glossary/prototype/index.html @@ -0,0 +1,16 @@ +--- +title: 原型 +slug: Glossary/Prototype +translation_of: Glossary/Prototype +--- +

原型(prototype)是在開發早期表現應用程式外觀或行為的模型。

+ +

請詳見繼承與原型鍊(Inheritance and the prototype chain)。

+ +

深入理解

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/pseudo-element/index.html b/files/zh-tw/glossary/pseudo-element/index.html new file mode 100644 index 0000000000..5272add4b8 --- /dev/null +++ b/files/zh-tw/glossary/pseudo-element/index.html @@ -0,0 +1,16 @@ +--- +title: 偽元素 +slug: Glossary/Pseudo-element +translation_of: Glossary/Pseudo-element +--- +

CSS中的偽元素選擇器可被應用在當HTML內沒有特定元素可以選擇,且文件內容需套用格式的時候。舉例來說,與其將每個段落的第一個字變成獨立元素,你也可選擇利用 p{{ Cssxref("::first-letter") }}的寫法選擇各段首字。

+ +

 

+ +

了解更多

+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/python/index.html b/files/zh-tw/glossary/python/index.html new file mode 100644 index 0000000000..61d6a4b107 --- /dev/null +++ b/files/zh-tw/glossary/python/index.html @@ -0,0 +1,33 @@ +--- +title: Python +slug: Glossary/Python +translation_of: Glossary/Python +--- +

Python是高階通用(general-purpose)程式語言。他使用了多型編程範式(multi-paradigm approach),這意味著他支援了程序化、物件導向、還有一些函式語言程式設計結構體(functional programming constructs)。

+ +

它是由吉多·范羅蘇姆(Guido van Rossum)作為 1985 到 1990 之間盛行的 ABC 語言繼承者形象而誕生的。目前各大領域都有使用 Python:例如 Web 開發、桌面程式、資料科學、DevOps、自動化或生產力用途等。

+ +

Python 是在 OSI 認可的開源許可證規範下開發的,使其能自由使用與分發,即使是商用亦然。目前 Python 許可證是由 Python Software Foundation 管理的。

+ + diff --git a/files/zh-tw/glossary/recursion/index.html b/files/zh-tw/glossary/recursion/index.html new file mode 100644 index 0000000000..9712988a69 --- /dev/null +++ b/files/zh-tw/glossary/recursion/index.html @@ -0,0 +1,15 @@ +--- +title: 遞迴 +slug: Glossary/Recursion +translation_of: Glossary/Recursion +--- +

函式呼叫函式自己的行為,稱為遞迴、或是遞歸。它主要用於解決含有子問題的問題。遞迴函式會收到兩個輸入:結束遞迴的基本情況(base case)或是延續遞迴的遞迴情況(recursive case)。

+ +

深入了解

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/reflow/index.html b/files/zh-tw/glossary/reflow/index.html new file mode 100644 index 0000000000..1643bb0635 --- /dev/null +++ b/files/zh-tw/glossary/reflow/index.html @@ -0,0 +1,12 @@ +--- +title: Reflow +slug: Glossary/Reflow +translation_of: Glossary/Reflow +--- +

Reflow(回流)會發生於瀏覽器({{glossary("browser")}})必須再次處理和繪製部分或整個網頁時,如在互動式網站更新後。

+ +

深入了解

+ + diff --git a/files/zh-tw/glossary/regular_expression/index.html b/files/zh-tw/glossary/regular_expression/index.html new file mode 100644 index 0000000000..13bd28ef71 --- /dev/null +++ b/files/zh-tw/glossary/regular_expression/index.html @@ -0,0 +1,29 @@ +--- +title: 正規表示式 +slug: Glossary/Regular_expression +tags: + - CodingScripting + - Glossary + - Regular Expression + - 'l10n:priority' +translation_of: Glossary/Regular_expression +--- +

正規表示式Regular expressions,或是regex)是主宰著字符序列搜索的規則。

+ +

許多語言都實作了正規表示式,但最出名的實作,是引出一連串不同實作方式的 Perl 版本實作,稱為 PCRE (Perl Compatible Regular Expression)。在 Web 平台,{{glossary("JavaScript")}} 透過 {{jsxref("RegExp")}} 物件,提供另一種正規表示式的實作。

+ +

了解詳情

+ +

基本知識

+ + + +

技術參考

+ + diff --git a/files/zh-tw/glossary/responsive_web_design/index.html b/files/zh-tw/glossary/responsive_web_design/index.html new file mode 100644 index 0000000000..130bca44fc --- /dev/null +++ b/files/zh-tw/glossary/responsive_web_design/index.html @@ -0,0 +1,16 @@ +--- +title: 響應式網頁設計 +slug: Glossary/Responsive_web_design +translation_of: Glossary/Responsive_web_design +--- +

響應式網頁設計RWD)是一種強調製作能在所有上網設備上,提供最佳外觀和體驗的 Web 開發觀念。

+ +

深入理解

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/rest/index.html b/files/zh-tw/glossary/rest/index.html new file mode 100644 index 0000000000..f07cdfcf6d --- /dev/null +++ b/files/zh-tw/glossary/rest/index.html @@ -0,0 +1,26 @@ +--- +title: REST +slug: Glossary/REST +translation_of: Glossary/REST +--- +

具象狀態傳輸(REST,Representational State Transfer)是一組實現效率、可讀性、還有可擴展分散式系統(scalable distributed system)的軟體架構設計規範。如果一個系統能維持某些規範,他就是 RESTful。

+ +

REST 的基本概念是資源(resource):例如說,文件能透過明確且標準的操作與格式,轉換其狀態與超文本的關聯。通常在 {{Glossary("API")}} 或服務能直接更改文件類型,而非觸發其他行為時,就會稱做 RESTful。

+ +

由於網際網路({{glossary("World Wide Web")}})背後的 {{Glossary("HTTP")}} 協議也能傳送文件及超文本連結、又同時充當了標準,簡易的 HTTP API 雖然有時不一定遵守所有 REST 規範,他們還是會俗稱為 RESTful API、RESTful 服務、或直接叫 REST 服務。初學者可以先假設 REST API 是指能透過 web 相關的函式庫和工具來呼叫的 HTTP 服務。

+ +

深入理解

+ +

搞懂它

+ + + +

基礎知識

+ + 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 框架都有自己的路由器函式庫:

+ + diff --git a/files/zh-tw/glossary/ruby/index.html b/files/zh-tw/glossary/ruby/index.html new file mode 100644 index 0000000000..1e1832c8a8 --- /dev/null +++ b/files/zh-tw/glossary/ruby/index.html @@ -0,0 +1,31 @@ +--- +title: Ruby +slug: Glossary/Ruby +translation_of: Glossary/Ruby +--- +

Ruby 是個開源的程式語言。在{{glossary("world wide web","網際網路")}}的脈落下,Ruby 常藉由伺服器端的 Ruby On Rails(ROR)框架構建網站或 app。

+ +

Ruby 也可以指 HTML 文件內,東亞文字的註釋方法。請參考 {{HTMLElement("ruby")}} 元素。

+ + diff --git a/files/zh-tw/glossary/seo/index.html b/files/zh-tw/glossary/seo/index.html new file mode 100644 index 0000000000..7d955eb1c2 --- /dev/null +++ b/files/zh-tw/glossary/seo/index.html @@ -0,0 +1,40 @@ +--- +title: SEO +slug: Glossary/SEO +tags: + - 搜尋引擎最佳化 +translation_of: Glossary/SEO +--- +

搜尋引擎最佳化(Search Engine Optimization、SEO)是提高網站於搜尋引擎的能見度之過程,又稱搜索排名改進。

+ +

搜尋引擎會{{Glossary("Crawler", "爬行")}}網路,從某個頁面連結到另一個頁面,並編篡找到的內容。當你搜尋的時候,搜尋引擎就會顯示已編好的內容。爬蟲遵循規則。如果你在給網站 SEO 時遵循這些規則,就能提高網站出現在搜尋結果首位的機會。它能增進流量,並透過電子商務與廣告,增加潛在收入。

+ +

搜尋引擎針對 SEO 給予一些建議,但大型搜尋引擎,把排名結果視為商業機密。SEO 結合了官方搜尋引擎的指引、經驗知識、以及源自論文或專利的理論知識。

+ +

SEO 方法分為三大類:

+ +
+
技術
+
使用語意化的 {{Glossary("HTML")}} 標示內容。當爬蟲在探索網站時,它只會找要索引的內容。
+
文案
+
使用閱覽者的詞彙來編寫內容。使用文字和圖像,讓爬蟲能夠理解主題。
+
聲望
+
當其他網站連結到你的網站時,你會得到最多流量。
+
+ +

深入理解

+ +

一般常識

+ + + +

理解 SEO

+ + diff --git a/files/zh-tw/glossary/server/index.html b/files/zh-tw/glossary/server/index.html new file mode 100644 index 0000000000..1d2333a873 --- /dev/null +++ b/files/zh-tw/glossary/server/index.html @@ -0,0 +1,19 @@ +--- +title: 伺服器 +slug: Glossary/Server +translation_of: Glossary/Server +--- +

硬體而言的伺服器(server)是個能在網路上,提供用戶端服務的共享性電腦(shared computer)。軟體而言的伺服器程式,則是指能給用戶端提供服務的程式。

+ +

服務(Services)通常會提供於內部網路、或是公開網路。用戶端程式與伺服器端程式通常利用 {{glossary("protocol")}} 來傳送編碼的數據、並依此連接之。

+ +

內部網路最常見的伺服器有檔案、域名、電郵、印表機、還有傳真伺服器。另一個常見的伺服器是連結到網際網路的 Web 伺服器。在資料中心(data center)的微電腦、大型電腦、還有超級電腦... 等,也都是伺服器。

+ +

了解更多

+ +

一般知識

+ + diff --git a/files/zh-tw/glossary/sgml/index.html b/files/zh-tw/glossary/sgml/index.html new file mode 100644 index 0000000000..36c3c4f537 --- /dev/null +++ b/files/zh-tw/glossary/sgml/index.html @@ -0,0 +1,21 @@ +--- +title: SGML +slug: Glossary/SGML +tags: + - CodingScripting + - Composing + - Glossary + - SGML + - 'l10n:priority' +translation_of: Glossary/SGML +--- +

標準通用標記式語言(Standard Generalized Markup Language 或簡稱 SGML)是一套 {{Glossary("ISO")}} 所定義,用來規範宣告式標記語言的標準。

+ +

在 Web 環境當中,{{Glossary("HTML")}} 4、{{Glossary("XHTML")}} 以及 {{Glossary("XML")}} 都是知名的以 SGML 為基礎的語言。然而值得一提的是,HTML 自第五版起擁有了自己的剖析規則,不再是以 SGML 為基礎的語言。

+ +

了解更多

+ + diff --git a/files/zh-tw/glossary/spa/index.html b/files/zh-tw/glossary/spa/index.html new file mode 100644 index 0000000000..7bf0e740dc --- /dev/null +++ b/files/zh-tw/glossary/spa/index.html @@ -0,0 +1,38 @@ +--- +title: SPA +slug: Glossary/SPA +translation_of: Glossary/SPA +--- +

單頁應用(SPA,Single-page application)是一種 Web app 開發實作。它能在使用網站時,只載入一個頁面;並在網頁更新時,透過 JavaScript API 如 {{domxref("XMLHttpRequest")}} 與 Fetch 同步更新部份網頁。

+ +

SPA 能讓用戶在使用網站時,不用從伺服器載入整個頁面,所以會提升性能與動態體驗。相對地,在 {{Glossary("SEO")}}、狀態與路由管理、還有性能監控方面,都會是需要考慮的劣勢。

+ +

參見

+ +

一般知識

+ +

以下為訪間最熱門的 SPA:

+ + + + diff --git a/files/zh-tw/glossary/sql/index.html b/files/zh-tw/glossary/sql/index.html new file mode 100644 index 0000000000..2c620ac65c --- /dev/null +++ b/files/zh-tw/glossary/sql/index.html @@ -0,0 +1,21 @@ +--- +title: SQL +slug: Glossary/SQL +translation_of: Glossary/SQL +--- +

SQL(Structured Query Language,結構化查詢語言)是專為表格形式資料庫的更新、檢索、計算,所設計的描述性電腦語言。

+ +

深入了解

+ +

基本知識

+ + + +

了解 SQL

+ + diff --git a/files/zh-tw/glossary/sql_injection/index.html b/files/zh-tw/glossary/sql_injection/index.html new file mode 100644 index 0000000000..2e44516cc2 --- /dev/null +++ b/files/zh-tw/glossary/sql_injection/index.html @@ -0,0 +1,63 @@ +--- +title: SQL 注入 +slug: Glossary/SQL_Injection +translation_of: Glossary/SQL_Injection +--- +

SQL 注入(SQL injection)利用了網路程式(Web apps)的錯誤輸入。駭客可以透過執行後端資料庫的網路程式,惡意繞過 SQL 指令。

+ +

SQL 注入能在未授權的情況下,直接從資料庫訪問資料庫與檢索信息。許多數據洩露肇因於 SQL 注入。

+ +

+ +

如何做動

+ +

+ +

在輸入 username (用戶名)與 password (密碼)後,GUI 背後的 SQL 查詢會這樣工作:

+ +
"SELECT Count(*) FROM Users WHERE Username=' " + txt.User.Text+" ' AND Password=' "+ txt.Password.Text+" ' ";
+ +

假設用戶在 username 欄位輸入了 admin 還在 password 欄位輸入了 passwd123,接著按了下面的 Log in(登入), SQL 查詢會這樣運作:

+ +
"SELECT Count(*) FROM Users WHERE Username=' admin ' AND Password=' passwd123 ' ";
+
+ +

如果驗證正確,用戶就可以登入,是個很簡單(所以很不安全)的機制。駭客利用者這種不安全,獲取未經授權的訪問。

+ +

駭客使用一種稱為 Magical String 的簡單字串,例如:

+ +

Username: admin

+ +

Password: anything 'or'1'='1

+ +

在按下 login 按鈕以後,SQL 查詢會這樣運作:

+ +
"SELECT Count(*) FROM Users WHERE Username=' admin ' AND Password=' anything 'or'1'='1 ' ";
+
+ +

仔細檢查一下查詢密碼的部分。

+ +
Password=' anything 'or'1'='1 '
+ +

密碼不是 anything,因此 password=anything 會回傳 FALSE(錯誤)。但 '1'='1' 是正確的宣告,所以會回傳 TRUE(正確)。最後,透過 OR (或)運算符,FALSE OR TRUE 的比較結果是 TRUE,認證因而成功通過。只要一點簡單的字串(Magical String)整個資料庫就會被洩漏。

+ +

如何避免

+ +

在執行用戶的憑證查詢前,先做如下的改變:

+ +
$id = $_GET['id'] 
+
+(1) $id = Stripslashes($id)
+
+(2) $id = mysql_real_escape_String($id)
+ +

藉由 (1) 所有輸入字串的單引號 ' 取代成雙引號 ",還有 (2) 在每個 ' 之前加上 /。 修正後的 Magical String 不能繞過驗證,並使你的資料庫保持安全。

+ +

了解詳情

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/svg/index.html b/files/zh-tw/glossary/svg/index.html new file mode 100644 index 0000000000..717b0b0337 --- /dev/null +++ b/files/zh-tw/glossary/svg/index.html @@ -0,0 +1,33 @@ +--- +title: SVG +slug: Glossary/SVG +translation_of: Glossary/SVG +--- +

可縮放向量圖形Scalable Vector Graphics, SVG)是基於 {{Glossary("XML")}} 語法的 2D 向量圖片格式。

+ +

{{Glossary("W3C")}} 在 1990 晚期啟動 SVG 開發,但它要在 {{Glossary("Microsoft Internet Explorer", "IE")}} 9 開始支援 SVG 後才開始發跡。目前所有主流{{Glossary("browser","瀏覽器")}}都支援 SVG。

+ +

由於 SVG 基於 {{Glossary("XML")}} 語法,所以它可以透過 {{Glossary("CSS")}} 樣式化、並透過 {{Glossary("JavaScript")}} 互動。HTML5 目前能在 {{Glossary("HTML")}} 檔案內直接嵌入 SVG {{Glossary("Tag","標籤")}}。

+ +

由於 SVG 是向量圖形,它因此可以無限縮放。也由於你可以建立介面元素(interface element)還有在任何螢幕尺寸縮放的圖形,它在{{Glossary("responsive design","響應式設計")}}上也相當重要。SVG 也提供一組有用的工具,例如剪輯、遮罩、濾器、動畫(clipping, masking, filters, animation)。

+ +

深入理解

+ +

基本知識

+ + + +

理解 SVG

+ + + +

技術資訊

+ + diff --git a/files/zh-tw/glossary/svn/index.html b/files/zh-tw/glossary/svn/index.html new file mode 100644 index 0000000000..1de335a064 --- /dev/null +++ b/files/zh-tw/glossary/svn/index.html @@ -0,0 +1,24 @@ +--- +title: SVN +slug: Glossary/SVN +tags: + - SVN + - 術語表 +translation_of: Glossary/SVN +--- +

Apache Subversion (SVN) 是免費的資源控制管理({{Glossary("SCM")}}) 系統。 它准許開發者保留文本和程式碼修改的歷史記錄。儘管 SVN 可以處理二進制文件,但我們不建議使用。

+ +

了解更多

+ +

基礎知識

+ + + +

學習使用

+ + diff --git a/files/zh-tw/glossary/synchronous/index.html b/files/zh-tw/glossary/synchronous/index.html new file mode 100644 index 0000000000..db33bd48e1 --- /dev/null +++ b/files/zh-tw/glossary/synchronous/index.html @@ -0,0 +1,19 @@ +--- +title: 同步 +slug: Glossary/Synchronous +translation_of: Glossary/Synchronous +--- +

同步(Synchronous)是指各方在接收(必要的話還會執行與回覆)訊息時,立刻(或盡可能接近立刻)執行的即時通訊。

+ +

以人類通訊來比喻就是電話:在電話通訊時,你通常會立刻回覆對方的訊息。

+ +

很多程式指令都是同步的:例如在計算時,環境會立刻回傳結果,除非你撰寫程式時不讓它這麼做。

+ +

深入理解

+ +

技術參考

+ + diff --git a/files/zh-tw/glossary/type/index.html b/files/zh-tw/glossary/type/index.html new file mode 100644 index 0000000000..8a2a1106fd --- /dev/null +++ b/files/zh-tw/glossary/type/index.html @@ -0,0 +1,17 @@ +--- +title: 型別 +slug: Glossary/Type +translation_of: Glossary/Type +--- +

型別(或資料型別)是能決定 {{glossary("value")}} 該存為何種類型的特性:例如 JavaScript 的 {{domxref("Boolean")}} 只能存為 true/false 兩者其一、而字串({{domxref("String")}})能存為文字字串、{{domxref("Number")}} 則能存城任何類型的數字……等等。

+ +

型別也能決定哪些操作是有效的:例如說整數(integer)可以與整數相乘,但不能與字串相乘。

+ +

深入了解

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/uri/index.html b/files/zh-tw/glossary/uri/index.html new file mode 100644 index 0000000000..8e0d68000c --- /dev/null +++ b/files/zh-tw/glossary/uri/index.html @@ -0,0 +1,15 @@ +--- +title: URI +slug: Glossary/URI +translation_of: Glossary/URI +--- +

統一資源識別碼 (Uniform Resource Identifier,一般縮寫成 URI) 是個會指向資訊來源的字串。 其中又以定位網址 {{Glossary("URL","URLs")}} 最為常見,會把該位址傳給網站,好讓網站辨認資訊來源。不過,統一資源名稱 {{Glossary("URN","URNs")}} 就不一樣了,是用命名空間允許的名稱指向資訊來源,例如國際標準書碼 (International Standard Book Number,一般以ISBN 縮寫)

+ +

想了解更多嗎?

+ +

一般常識篇

+ + diff --git a/files/zh-tw/glossary/url/index.html b/files/zh-tw/glossary/url/index.html new file mode 100644 index 0000000000..2aecd64d12 --- /dev/null +++ b/files/zh-tw/glossary/url/index.html @@ -0,0 +1,35 @@ +--- +title: URL +slug: Glossary/URL +tags: + - URL + - 'l10n:priority' + - 術語表 + - 鏈接 +translation_of: Glossary/URL +--- +

統一資源定位器 (URL) 是一個在互聯網上查找指定資源(例如網頁,圖片或視頻)位置的文本字符串。 

+ +

在{{Glossary("HTTP")}}的文本中, URLs 通常被稱作網頁地址或鏈接。瀏覽器把 URLs 顯示在地址欄,如: https://developer.mozilla.org Some browsers display only the part of a URL after the "//", that is, the {{Glossary("Domain name")}}.

+ +

URLs 同樣可以用於文件傳輸({{Glossary("FTP")}}) , 郵件 ({{Glossary("SMTP")}}), 以及其他應用程式.

+ +

了解更多

+ +

基礎知識

+ + + +

學習其他

+ + + +

Specification

+ + diff --git a/files/zh-tw/glossary/viewport/index.html b/files/zh-tw/glossary/viewport/index.html new file mode 100644 index 0000000000..654d8e81df --- /dev/null +++ b/files/zh-tw/glossary/viewport/index.html @@ -0,0 +1,25 @@ +--- +title: Viewport +slug: Glossary/Viewport +tags: + - CodingScripting + - Glossary +translation_of: Glossary/Viewport +--- +

一個 viewport(視圖、視區)在電腦圖像中表示一個正在被觀看的多邊型區域(通常是方形)。在瀏覽器的術語中,它指涉的是在視窗中(如果在全螢幕模式底下,那也可以是在螢幕中),正在瀏覽的文件中可被看見的一部分。在 viewport 外的內容在螢幕上是看不到的,直到內容被滾動到畫面中。

+ +

在視窗/螢幕上能被看見的 viewport 區域被稱為 visual viewport(可視視圖)。它有時會比 layout viewport 還來得小,例如在使用者縮放網頁的時候,layout viewport(布局視圖)會保持同樣的大小,而 visual viewport 則會變得較小。

+ + + +

瞭解更多

+ +

General Knowledge

+ + diff --git a/files/zh-tw/glossary/w3c/index.html b/files/zh-tw/glossary/w3c/index.html new file mode 100644 index 0000000000..94ce9c4039 --- /dev/null +++ b/files/zh-tw/glossary/w3c/index.html @@ -0,0 +1,19 @@ +--- +title: W3C +slug: Glossary/W3C +translation_of: Glossary/W3C +--- +

全球資訊網協會(World Wide Web Consortium,W3C)是維護{{Glossary("World Wide Web", "網路相關")}}規則與架構的國際機構。

+ +

它由 420 多個開發網路標準、經營宣傳計畫、還有維護網路相關的公開討論會……等成員組織構成。W3C 的業界協調公司確保它們實行相同的 W3C 標準。

+ +

每個標準都會有四個成熟過程:工作草案(Working Draft、WD)、候選推薦標準(Candidate Recommendation、CR)、提案推薦標準(Proposed Recommendation、PR)、以及 W3C 推薦標準(W3C Recommendation、REC)。

+ +

深入了解

+ +

基本知識

+ + diff --git a/files/zh-tw/glossary/webextensions/index.html b/files/zh-tw/glossary/webextensions/index.html new file mode 100644 index 0000000000..9983d915a6 --- /dev/null +++ b/files/zh-tw/glossary/webextensions/index.html @@ -0,0 +1,19 @@ +--- +title: WebExtensions +slug: Glossary/WebExtensions +tags: + - CodingScripting + - Glossary + - NeedsContent + - WebExtensions +translation_of: Glossary/WebExtensions +--- +

WebExtensions 是一種跨瀏覽器系統,用於開發 Firefox 的瀏覽器附加元件。這個系統提供許多 API 能夠在不同的瀏覽器中執行,例如 Mozilla Firefox、Google Chrome、Opera 瀏覽器和 Microsoft Edge。

+ +

深入了解

+ +

技術資訊

+ + diff --git a/files/zh-tw/glossary/websockets/index.html b/files/zh-tw/glossary/websockets/index.html new file mode 100644 index 0000000000..7aca64282e --- /dev/null +++ b/files/zh-tw/glossary/websockets/index.html @@ -0,0 +1,29 @@ +--- +title: WebSockets +slug: Glossary/WebSockets +translation_of: Glossary/WebSockets +--- +

WebSocket 是允許{{Glossary("Server", "伺服器")}}與用戶端之間發起持續性的 {{Glossary("TCP")}} 連接,以便隨時交換資料的{{Glossary("protocol", "協定")}}。

+ +

任何用戶端與伺服器端程式都能使用 WebSocket,不過一般來說,大都是在{{Glossary("Browser", "網路瀏覽器")}}與伺服器之間發起的。伺服器藉由 WebSocket 可以在用戶端沒有事先請求的情況下,將數據傳遞給用戶端,以便動態更新資料。

+ +

深入理解

+ +

一般常識

+ + + +

技術參考

+ + + +

學習之

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