aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/zh-cn/mdn/structures/macros/other/index.html2
-rw-r--r--files/zh-cn/web/api/blobbuilder/index.html6
-rw-r--r--files/zh-cn/web/api/websocket/bufferedamount/index.html4
-rw-r--r--files/zh-tw/web/api/websocket/index.html4
4 files changed, 8 insertions, 8 deletions
diff --git a/files/zh-cn/mdn/structures/macros/other/index.html b/files/zh-cn/mdn/structures/macros/other/index.html
index 08ec80ad62..2f55aab2b0 100644
--- a/files/zh-cn/mdn/structures/macros/other/index.html
+++ b/files/zh-cn/mdn/structures/macros/other/index.html
@@ -80,7 +80,7 @@ tags:
<ul>
<li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/SectionOnPage.ejs">SectionOnPage</a></code> 宏创建一个链接到一个部分的名称和包含该部分的文章的短语。例如,<code>\{{SectionOnPage("/en-US/docs/Mozilla/Firefox/Releases/21", "Changes for Web developers")}}</code> 输出以下内容:<em>{{SectionOnPage("/en-US/docs/Mozilla/Firefox/Releases/21", "Changes for Web developers")}}</em>。</li>
- <li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/manch.ejs">manch</a></code> 在当前接口中插入一个方法的链接;这仅用于接口文档页面。 <code>\{{manch("foo")}}</code> 产生 <code>&lt;code&gt;&lt;a href=&quot;current/path#foo&quot;&gt;foo()&lt;/a&gt;&lt;/code&gt;</code> ({{ manch("foo") }})。</li>
+ <li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/manch.ejs">manch</a></code> 在当前接口中插入一个方法的链接;这仅用于接口文档页面。 <code>\{{manch("foo")}}</code> 产生 <code>&lt;code&gt;&lt;a href=&quot;current/path#foo&quot;&gt;foo()&lt;/a&gt;&lt;/code&gt;</code> (<a href="#foo()"><code>foo()</code></a>)。</li>
<li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/Link.ejs">Link</a></code> 宏在 MDN 上插入到指定页面的链接,使用页面标题作为要单击的可见字符串,并从页面的 SEO 摘要中提取工具提示。</li>
<li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/LinkItem.ejs">LinkItem</a></code> 宏插入到指定 URL 的链接,将指示的文本作为要单击的可见字符串。该链接会自动选取目标页面的摘要作为其工具提示。这与 <code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/Link.ejs">Link</a></code> 的不同之处在于您必须指定标题。</li>
<li><code><a href="https://github.com/mdn/yari/tree/master/kumascript/macros/LinkItemDL.ejs">LinkItemDL</a></code> 宏插入指向指定 URL 的链接,指示文本为 {{HTMLElement("dt")}},这也是链接。 {{HTMLElement("dd")}} 元素包含指定页面的摘要。</li>
diff --git a/files/zh-cn/web/api/blobbuilder/index.html b/files/zh-cn/web/api/blobbuilder/index.html
index 219cd8f858..f94fbbc89d 100644
--- a/files/zh-cn/web/api/blobbuilder/index.html
+++ b/files/zh-cn/web/api/blobbuilder/index.html
@@ -5,7 +5,7 @@ translation_of: Web/API/BlobBuilder
---
<p>{{ deprecated_header() }}</p>
<p>{{ SeeCompatTable() }}</p>
-<p>The <code>BlobBuilder</code> interface provides an easy way to construct {{ domxref("Blob") }} objects. Just create a <code>BlobBuilder</code> and append chunks of data to it by calling the {{ manch("append") }} method. When you're done building your blob, call {{ manch("getBlob") }} to retrieve a {{ domxref("Blob") }} containing the data you sent into the blob builder.</p>
+<p>The <code>BlobBuilder</code> interface provides an easy way to construct {{ domxref("Blob") }} objects. Just create a <code>BlobBuilder</code> and append chunks of data to it by calling the <a href="#append()"><code>append()</code></a> method. When you're done building your blob, call <a href="#getBlob()"><code>getBlob()</code></a> to retrieve a {{ domxref("Blob") }} containing the data you sent into the blob builder.</p>
<div class="note">
<strong>注:</strong><code>BlobBuilder</code>接口已经废弃,请使用新版草案中引入的 {{domxref('Blob') }}构造函数.</div>
<h2 id="Method_overview" name="Method_overview">方法概述</h2>
@@ -57,7 +57,7 @@ void append(
Specifies how strings containing <code>\n</code> are to be written out. This can be <code>"transparent"</code> (endings unchanged) or <code>"native"</code> (endings changed to match host OS filesystem convention). The default value is <code>"transparent"</code>.</dd>
</dl>
<h3 id="getBlob()">getBlob()</h3>
-<p>Returns the {{ domxref("Blob") }} object that has been constructed using the data passed through calls to {{ manch("append") }}.</p>
+<p>Returns the {{ domxref("Blob") }} object that has been constructed using the data passed through calls to <a href="#append()"><code>append()</code></a>.</p>
<pre class="eval">Blob getBlob(
in DOMString contentType {{ optional_inline() }}
);
@@ -70,7 +70,7 @@ void append(
The MIME type of the data to be returned in the {{ domxref("Blob") }}. This will be the value of the <code>Blob</code> object's type property.</dd>
</dl>
<h6 id="返回值">返回值</h6>
-<p>A {{ domxref("Blob") }} object containing all of the data passed to any calls to {{ manch("append") }} made since the <code>BlobBuilder</code> was created. This also resets the <code>BlobBuilder</code> so that the next call to {{ manch("append") }} is starting a new, empty blob.</p>
+<p>A {{ domxref("Blob") }} object containing all of the data passed to any calls to <a href="#append()"><code>append()</code></a> made since the <code>BlobBuilder</code> was created. This also resets the <code>BlobBuilder</code> so that the next call to <a href="#append()"><code>append()</code></a> is starting a new, empty blob.</p>
<h3 id="getFile()_non-standard_inline()">getFile() {{ non-standard_inline() }}</h3>
<p>返回一个{{ domxref("File") }}对象.</p>
<pre class="eval">File getFile(
diff --git a/files/zh-cn/web/api/websocket/bufferedamount/index.html b/files/zh-cn/web/api/websocket/bufferedamount/index.html
index 4162fa92f2..2725f29518 100644
--- a/files/zh-cn/web/api/websocket/bufferedamount/index.html
+++ b/files/zh-cn/web/api/websocket/bufferedamount/index.html
@@ -11,9 +11,9 @@ translation_of: Web/API/WebSocket/bufferedAmount
---
<p>{{APIRef("Web Sockets API")}}</p>
-<p><strong><code>WebSocket.bufferedAmount</code>是一个只读属性,用于返回已经被</strong>{{manch("send")}}方法放入队列中但还没有被发送到网络中的数据的字节数。一旦队列中的所有数据被发送至网络,则该属性值将被重置为0。但是,若在发送过程中连接被关闭,则属性值不会重置为0。如果你不断地调用{{manch("send")}},则该属性值会持续增长</p>
+<p><strong><code>WebSocket.bufferedAmount</code>是一个只读属性,用于返回已经被</strong><a href="#send()"><code>send()</code></a>方法放入队列中但还没有被发送到网络中的数据的字节数。一旦队列中的所有数据被发送至网络,则该属性值将被重置为0。但是,若在发送过程中连接被关闭,则属性值不会重置为0。如果你不断地调用<a href="#send()"><code>send()</code></a>,则该属性值会持续增长</p>
-<p>The <strong><code>WebSocket.bufferedAmount</code></strong> read-only property returns the number of bytes of data that have been queued using calls to {{manch("send")}} but not yet transmitted to the network. This value resets to zero once all queued data has been sent. This value does not reset to zero when the connection is closed; if you keep calling {{manch("send")}}, this will continue to climb.</p>
+<p>The <strong><code>WebSocket.bufferedAmount</code></strong> read-only property returns the number of bytes of data that have been queued using calls to <a href="#send()"><code>send()</code></a> but not yet transmitted to the network. This value resets to zero once all queued data has been sent. This value does not reset to zero when the connection is closed; if you keep calling <a href="#send()"><code>send()</code></a>, this will continue to climb.</p>
<h2 id="Syntax">Syntax</h2>
diff --git a/files/zh-tw/web/api/websocket/index.html b/files/zh-tw/web/api/websocket/index.html
index 36cc698454..18444eacd1 100644
--- a/files/zh-tw/web/api/websocket/index.html
+++ b/files/zh-tw/web/api/websocket/index.html
@@ -20,7 +20,7 @@ original_slug: WebSockets/WebSockets_reference/WebSocket
<td><code>void <a href="#close()">close</a>(in optional unsigned long code, in optional DOMString reason);</code></td>
</tr>
<tr>
- <td><code>void <a href="#send()">send</a>(in DOMString data);</code></td>
+ <td><code>void <a href="#send">send</a>(in DOMString data);</code></td>
</tr>
</tbody>
</table>
@@ -42,7 +42,7 @@ original_slug: WebSockets/WebSockets_reference/WebSocket
<tr>
<td><code>bufferedAmount</code></td>
<td><code><a href="/en/unsigned_long" title="en/unsigned long">unsigned long</a></code></td>
- <td>呼叫 {{ manch("send") }} 隊列但尚未傳輸至網路上資料的位元數。連線關閉時此值不會重設為零。連續呼叫 {{ manch("send") }} 會讓此值不斷上升。<strong>唯讀</strong></td>
+ <td>呼叫 <a href="#send"><code>send()</code></a> 隊列但尚未傳輸至網路上資料的位元數。連線關閉時此值不會重設為零。連續呼叫 <a href="#send"><code>send()</code></a> 會讓此值不斷上升。<strong>唯讀</strong></td>
</tr>
<tr>
<td><code>extensions</code></td>