From 9f625c76a402ab5a56f5b96733b41ca2d01bd3b9 Mon Sep 17 00:00:00 2001 From: allo Date: Sat, 19 Mar 2022 09:05:33 +0800 Subject: remove all `manch` macro in `l10n-zh` --- files/zh-cn/web/api/blobbuilder/index.html | 6 +++--- files/zh-cn/web/api/websocket/bufferedamount/index.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-cn/web') 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 ---

{{ deprecated_header() }}

{{ SeeCompatTable() }}

-

The BlobBuilder interface provides an easy way to construct {{ domxref("Blob") }} objects. Just create a BlobBuilder 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.

+

The BlobBuilder interface provides an easy way to construct {{ domxref("Blob") }} objects. Just create a BlobBuilder and append chunks of data to it by calling the append() method. When you're done building your blob, call getBlob() to retrieve a {{ domxref("Blob") }} containing the data you sent into the blob builder.

注:BlobBuilder接口已经废弃,请使用新版草案中引入的 {{domxref('Blob') }}构造函数.

方法概述

@@ -57,7 +57,7 @@ void append( Specifies how strings containing \n are to be written out. This can be "transparent" (endings unchanged) or "native" (endings changed to match host OS filesystem convention). The default value is "transparent".

getBlob()

-

Returns the {{ domxref("Blob") }} object that has been constructed using the data passed through calls to {{ manch("append") }}.

+

Returns the {{ domxref("Blob") }} object that has been constructed using the data passed through calls to append().

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 Blob object's type property.
 
 
返回值
-

A {{ domxref("Blob") }} object containing all of the data passed to any calls to {{ manch("append") }} made since the BlobBuilder was created. This also resets the BlobBuilder so that the next call to {{ manch("append") }} is starting a new, empty blob.

+

A {{ domxref("Blob") }} object containing all of the data passed to any calls to append() made since the BlobBuilder was created. This also resets the BlobBuilder so that the next call to append() is starting a new, empty blob.

getFile() {{ non-standard_inline() }}

返回一个{{ domxref("File") }}对象.

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
 ---
 

{{APIRef("Web Sockets API")}}

-

WebSocket.bufferedAmount是一个只读属性,用于返回已经被{{manch("send")}}方法放入队列中但还没有被发送到网络中的数据的字节数。一旦队列中的所有数据被发送至网络,则该属性值将被重置为0。但是,若在发送过程中连接被关闭,则属性值不会重置为0。如果你不断地调用{{manch("send")}},则该属性值会持续增长

+

WebSocket.bufferedAmount是一个只读属性,用于返回已经被send()方法放入队列中但还没有被发送到网络中的数据的字节数。一旦队列中的所有数据被发送至网络,则该属性值将被重置为0。但是,若在发送过程中连接被关闭,则属性值不会重置为0。如果你不断地调用send(),则该属性值会持续增长

-

The WebSocket.bufferedAmount 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.

+

The WebSocket.bufferedAmount read-only property returns the number of bytes of data that have been queued using calls to 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 send(), this will continue to climb.

Syntax

-- cgit v1.2.3-54-g00ecf