From 0227170ae69b5b6c35c7cfa59ab54918241349fd Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 18 Mar 2022 22:01:02 +0800 Subject: auto replace anch with scripts --- files/zh-tw/web/api/console/index.html | 2 +- files/zh-tw/web/api/cssstylesheet/index.html | 2 +- files/zh-tw/web/api/element/getattribute/index.html | 2 +- files/zh-tw/web/api/event/eventphase/index.html | 2 +- files/zh-tw/web/api/fetch_api/using_fetch/index.html | 2 +- files/zh-tw/web/api/filesystem/index.html | 2 +- files/zh-tw/web/api/fullscreen_api/index.html | 2 +- files/zh-tw/web/api/html_drag_and_drop_api/index.html | 2 +- files/zh-tw/web/api/navigator/registerprotocolhandler/index.html | 2 +- files/zh-tw/web/api/setinterval/index.html | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) (limited to 'files/zh-tw/web/api') diff --git a/files/zh-tw/web/api/console/index.html b/files/zh-tw/web/api/console/index.html index 36320a69a8..914a0f3523 100644 --- a/files/zh-tw/web/api/console/index.html +++ b/files/zh-tw/web/api/console/index.html @@ -21,7 +21,7 @@ translation_of: Web/API/Console
console.log("Failed to open the specified link")
-

This page documents the {{anch("Methods")}} available on the Console object and gives a few {{anch("Usage")}} examples.

+

This page documents the Methods available on the Console object and gives a few Usage examples.

{{AvailableInWorkers}}

diff --git a/files/zh-tw/web/api/cssstylesheet/index.html b/files/zh-tw/web/api/cssstylesheet/index.html index d59efba049..9b3725c797 100644 --- a/files/zh-tw/web/api/cssstylesheet/index.html +++ b/files/zh-tw/web/api/cssstylesheet/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/CSSStyleSheet

A style sheet consists of {{domxref("CSSRule", "rules", "", 1)}}, such as {{domxref("CSSStyleRule", "style rules", "", 1)}} ("h1,h2 { font-size: 16pt }"), various at-rules (@import, @media, ...), etc. This interface lets you inspect and modify the list of rules in the stylesheet.

-

See the {{anch("Notes")}} section for the various ways a CSSStyleSheet object can be obtained.

+

See the Notes section for the various ways a CSSStyleSheet object can be obtained.

Properties

diff --git a/files/zh-tw/web/api/element/getattribute/index.html b/files/zh-tw/web/api/element/getattribute/index.html index 15235c37bf..9ef7de7345 100644 --- a/files/zh-tw/web/api/element/getattribute/index.html +++ b/files/zh-tw/web/api/element/getattribute/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/Element/getAttribute

摘要

-

getAttribute() 函式會回傳該網頁元素的屬性。 如果該屬性不存在,其回傳值會是null或 "" (空字串); 詳見 {{Anch("Notes")}} 。

+

getAttribute() 函式會回傳該網頁元素的屬性。 如果該屬性不存在,其回傳值會是null或 "" (空字串); 詳見 Notes 。

語法

diff --git a/files/zh-tw/web/api/event/eventphase/index.html b/files/zh-tw/web/api/event/eventphase/index.html index e146e7b230..1670960bb8 100644 --- a/files/zh-tw/web/api/event/eventphase/index.html +++ b/files/zh-tw/web/api/event/eventphase/index.html @@ -12,7 +12,7 @@ translation_of: Web/API/Event/eventPhase
var phase = event.eventPhase;
 
-

回傳一個整數值以代表目前事件於事件流中的傳遞階段,可能的值將於{{anch("事件傳遞階段常數")}}說明。

+

回傳一個整數值以代表目前事件於事件流中的傳遞階段,可能的值將於事件傳遞階段常數說明。

常數

diff --git a/files/zh-tw/web/api/fetch_api/using_fetch/index.html b/files/zh-tw/web/api/fetch_api/using_fetch/index.html index ae86951ce1..4316965217 100644 --- a/files/zh-tw/web/api/fetch_api/using_fetch/index.html +++ b/files/zh-tw/web/api/fetch_api/using_fetch/index.html @@ -46,7 +46,7 @@ translation_of: Web/API/Fetch_API/Using_Fetch

回傳的 response 需要透過 {{domxref("Body.json","json()")}} (在 {{domxref("Body")}} 可以找到定義, Body 是用 {{domxref("Request")}} 和 {{domxref("Response")}} 實作出來的物件.)

-

備註: 其實 Body 還提供了其他類似的功能可以將內容輸成其他類型格式,詳見{{anch("Body")}} 

+

備註: 其實 Body 還提供了其他類似的功能可以將內容輸成其他類型格式,詳見Body 

Fetch 請求的安全性 Content Security Policy(內容安全策略) 是由 header 中的 connect-src directive 所設定 ,並非其他 directive ( 比如:img-src、default-src 等)。

diff --git a/files/zh-tw/web/api/filesystem/index.html b/files/zh-tw/web/api/filesystem/index.html index 61c1141eb6..c694dcf786 100644 --- a/files/zh-tw/web/api/filesystem/index.html +++ b/files/zh-tw/web/api/filesystem/index.html @@ -10,7 +10,7 @@ translation_of: Web/API/FileSystem

FileSystem 實作文件和目錄介面,描述一個檔案系統。在任何檔案系統上,這個物件包含 {{domxref("FileSystemEntry.filesystem", "filesystem")}}的特性。某些網頁瀏覽器提供額外的API去創建和管理檔案系統,如Google Chrome的{{domxref("LocalFileSystem.requestFileSystem", "requestFileSystem()")}}函式。

-

此介面並非標準API, 代表規格並未依造標準制定, 因此必須注意並非所有網頁瀏覽器都有實作此介面, 有實作的網頁瀏覽器可能只有實作一小部分. 請在{{anch("Browser compatibility")}} 查看更多細節.

+

此介面並非標準API, 代表規格並未依造標準制定, 因此必須注意並非所有網頁瀏覽器都有實作此介面, 有實作的網頁瀏覽器可能只有實作一小部分. 請在Browser compatibility 查看更多細節.

基礎概念

diff --git a/files/zh-tw/web/api/fullscreen_api/index.html b/files/zh-tw/web/api/fullscreen_api/index.html index 881d22bbac..42e1ab1ee8 100644 --- a/files/zh-tw/web/api/fullscreen_api/index.html +++ b/files/zh-tw/web/api/fullscreen_api/index.html @@ -61,7 +61,7 @@ if (elem.requestFullscreen) {

離開全螢幕模式

-

使用者永遠可以自行離開全螢幕模式,詳見 {{ anch("Things your users want to know") }}。您也可以呼叫 {{domxref("Document.exitFullscreen()")}} 方法來達到相同效果。

+

使用者永遠可以自行離開全螢幕模式,詳見 Things your users want to know。您也可以呼叫 {{domxref("Document.exitFullscreen()")}} 方法來達到相同效果。

其他資訊

diff --git a/files/zh-tw/web/api/html_drag_and_drop_api/index.html b/files/zh-tw/web/api/html_drag_and_drop_api/index.html index ac7be3f0b0..5c47136d42 100644 --- a/files/zh-tw/web/api/html_drag_and_drop_api/index.html +++ b/files/zh-tw/web/api/html_drag_and_drop_api/index.html @@ -81,7 +81,7 @@ translation_of: Web/API/HTML_Drag_and_Drop_API

{{domxref("DataTransfer")}} 與 {{domxref("DataTransferItem")}} 介面的最大不同,就是前者使用同步的 {{domxref("DataTransfer.getData","getData()")}} 方法訪問拖放單元的資料;後者則使用非同步的 {{domxref("DataTransferItem.getAsString","getAsString()")}} 方法訪問。

-

注意:{{domxref("DragEvent")}} 與 {{domxref("DataTransfer")}} 介面受廣泛的桌面瀏覽器支援。但只有少數瀏覽器支援 {{domxref("DataTransferItem")}} 與 {{domxref("DataTransferItemList")}} 介面。請參見 {{anch("Interoperability")}} 以取得有關拖放功能互通性的資訊。

+

注意:{{domxref("DragEvent")}} 與 {{domxref("DataTransfer")}} 介面受廣泛的桌面瀏覽器支援。但只有少數瀏覽器支援 {{domxref("DataTransferItem")}} 與 {{domxref("DataTransferItemList")}} 介面。請參見 Interoperability 以取得有關拖放功能互通性的資訊。

Gecko-specific interfaces

diff --git a/files/zh-tw/web/api/navigator/registerprotocolhandler/index.html b/files/zh-tw/web/api/navigator/registerprotocolhandler/index.html index f12987d26f..7122e895e9 100644 --- a/files/zh-tw/web/api/navigator/registerprotocolhandler/index.html +++ b/files/zh-tw/web/api/navigator/registerprotocolhandler/index.html @@ -40,7 +40,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler

Permitted schemes

-

For security reasons, registerProtocolHandler() has restrictions on which schemes may be registered. A custom scheme may be registered as long as the scheme's name begins with "web+", is at least five characters long (including the "web+" prefix), and has only lower-case ASCII letters in its name. For example, "web+burger", as shown in the {{anch("Example")}} below.

+

For security reasons, registerProtocolHandler() has restrictions on which schemes may be registered. A custom scheme may be registered as long as the scheme's name begins with "web+", is at least five characters long (including the "web+" prefix), and has only lower-case ASCII letters in its name. For example, "web+burger", as shown in the Example below.

Otherwise, the scheme must be one of the schemes on the whitelist below:

diff --git a/files/zh-tw/web/api/setinterval/index.html b/files/zh-tw/web/api/setinterval/index.html index ac8ee376e0..031d48e764 100644 --- a/files/zh-tw/web/api/setinterval/index.html +++ b/files/zh-tw/web/api/setinterval/index.html @@ -22,7 +22,7 @@ original_slug: Web/API/WindowOrWorkerGlobalScope/setInterval
code
An optional syntax allows you to include a string instead of a function, which is compiled and executed every delay milliseconds. This syntax is not recommended for the same reasons that make using {{jsxref("eval", "eval()")}} a security risk.
delay{{optional_inline}}
-
The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function or code. See {{anch("Delay restrictions")}} below for details on the permitted range of delay values.
+
The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function or code. See Delay restrictions below for details on the permitted range of delay values.
arg1, ..., argN {{optional_inline}}
Additional arguments which are passed through to the function specified by func once the timer expires.
-- cgit v1.2.3-54-g00ecf