aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2022-02-11 00:58:37 +0000
committerMDN <actions@users.noreply.github.com>2022-02-11 00:58:37 +0000
commit4873c5f1122ac800cf3c916a52df07e05ddc9dcf (patch)
tree0b63e7a2179d77b0b20eac780dba8d8cb35355f4 /files/zh-cn/web
parent633d212cfb9c7a5838f350ff88264e460ef0398e (diff)
downloadtranslated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.gz
translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.bz2
translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web')
-rw-r--r--files/zh-cn/web/api/animation/cancel_event/index.html (renamed from files/zh-cn/web/api/animation/oncancel/index.html)3
-rw-r--r--files/zh-cn/web/api/xmlhttprequest/readystatechange_event/index.html (renamed from files/zh-cn/web/api/xmlhttprequest/onreadystatechange/index.html)3
-rw-r--r--files/zh-cn/web/api/xmlhttprequesteventtarget/onabort/index.html56
-rw-r--r--files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html60
-rw-r--r--files/zh-cn/web/api/xmlhttprequesteventtarget/onload/index.html54
-rw-r--r--files/zh-cn/web/api/xmlhttprequesteventtarget/onloadstart/index.html54
-rw-r--r--files/zh-cn/web/api/xmlhttprequesteventtarget/onprogress/index.html64
7 files changed, 4 insertions, 290 deletions
diff --git a/files/zh-cn/web/api/animation/oncancel/index.html b/files/zh-cn/web/api/animation/cancel_event/index.html
index 00e9b0fc98..339ac7e40f 100644
--- a/files/zh-cn/web/api/animation/oncancel/index.html
+++ b/files/zh-cn/web/api/animation/cancel_event/index.html
@@ -1,10 +1,11 @@
---
title: Animation.oncancel
-slug: Web/API/Animation/oncancel
+slug: Web/API/Animation/cancel_event
tags:
- API
- Animation
translation_of: Web/API/Animation/oncancel
+original_slug: Web/API/Animation/oncancel
---
<p>{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}</p>
diff --git a/files/zh-cn/web/api/xmlhttprequest/onreadystatechange/index.html b/files/zh-cn/web/api/xmlhttprequest/readystatechange_event/index.html
index 76bd8c6ccf..63cdfe5bf8 100644
--- a/files/zh-cn/web/api/xmlhttprequest/onreadystatechange/index.html
+++ b/files/zh-cn/web/api/xmlhttprequest/readystatechange_event/index.html
@@ -1,6 +1,6 @@
---
title: XMLHttpRequest.onreadystatechange
-slug: Web/API/XMLHttpRequest/onreadystatechange
+slug: Web/API/XMLHttpRequest/readystatechange_event
tags:
- XHR
- XMLHttpRequest
@@ -9,6 +9,7 @@ tags:
- 属性
- 接口
translation_of: Web/API/XMLHttpRequest/onreadystatechange
+original_slug: Web/API/XMLHttpRequest/onreadystatechange
---
<div>{{APIRef}}</div>
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onabort/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onabort/index.html
deleted file mode 100644
index 38d305c1c2..0000000000
--- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onabort/index.html
+++ /dev/null
@@ -1,56 +0,0 @@
----
-title: XMLHttpRequestEventTarget.onabort
-slug: Web/API/XMLHttpRequestEventTarget/onabort
-translation_of: Web/API/XMLHttpRequestEventTarget/onabort
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<p><strong><code>XMLHttpRequestEventTarget.onabort</code></strong> 会在 {{domxref("XMLHttpRequest")}} 交易操作被诸如 {{domxref("XMLHttpRequest.abort()")}} 函数中止时调用。</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="syntaxbox"><em>XMLHttpRequest</em>.onabort = <em>callback</em>;</pre>
-
-<h3 id="值">值</h3>
-
-<ul>
- <li><code><em>callback</em></code> 在交易被中止时调用的函数。</li>
-</ul>
-
-<h2 id="Example" name="Example">示例</h2>
-
-<pre class="brush: js">var xmlhttp = new XMLHttpRequest(),
- method = 'GET',
- url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(<em>method</em>, <em>url</em>, true);
-xmlhttp.onabort = function () {
- console.log('** 请求被中止');
-};
-xmlhttp.send();
-//..
-xmlhttp.abort(); // 这将会调用我们上面定义的 onabort 回调函数
-</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">状态</th>
- <th scope="col">备注</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onabort')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>WHATWG living standard</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.XMLHttpRequestEventTarget.onabort")}}</p>
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html
deleted file mode 100644
index 3c604e5026..0000000000
--- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html
+++ /dev/null
@@ -1,60 +0,0 @@
----
-title: XMLHttpRequestEventTarget.onerror
-slug: Web/API/XMLHttpRequestEventTarget/onerror
-tags:
- - API
- - Event Handler
- - XMLHttpRequestEventTarget
-translation_of: Web/API/XMLHttpRequestEventTarget/onerror
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<p><strong><code>XMLHttpRequestEventTarget.onerror</code></strong> 是{{domxref("XMLHttpRequest")}} 事务由于错误而失败时调用的函数。</p>
-
-<p>请注意只有在网络层级出现错误时才会调用此函数。如果错误只出现在应用层(比如发送一个HTTP的错误码),这个方法将不会被调用。</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="syntaxbox"><em>XMLHttpRequest</em>.onerror = <em>callback</em>;</pre>
-
-<h3 id="Values">Values</h3>
-
-<ul>
- <li><code><em>callback</em></code> 是当请求失败时执行的函数。</li>
-</ul>
-
-<h2 id="Example" name="Example">举例</h2>
-
-<pre class="brush: js">var xmlhttp = new XMLHttpRequest(),
- method = 'GET',
- url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(<em>method</em>, <em>url</em>, true);
-xmlhttp.onerror = function () {
- console.log("** An error occurred during the transaction");
-};
-xmlhttp.send();
-</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onerror')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>WHATWG living standard</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.XMLHttpRequestEventTarget.onerror")}}</p>
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onload/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onload/index.html
deleted file mode 100644
index 8e2c27016f..0000000000
--- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onload/index.html
+++ /dev/null
@@ -1,54 +0,0 @@
----
-title: XMLHttpRequestEventTarget.onload
-slug: Web/API/XMLHttpRequestEventTarget/onload
-translation_of: Web/API/XMLHttpRequestEventTarget/onload
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<p><strong><code>XMLHttpRequestEventTarget.onload</code></strong> 是 {{domxref("XMLHttpRequest")}} 请求成功完成时调用的函数。</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="syntaxbox"><em>XMLHttpRequest</em>.onload = <em>callback</em>;</pre>
-
-<h3 id="值">值</h3>
-
-<ul>
- <li><code><em>callback</em></code> 是请求成功完成时要执行的函数。它接收一个 {{domxref("ProgressEvent")}} 对象作为它的第一个参数。<em>this</em> 的值(即上下文)与此回调的 {{domxref("XMLHttpRequest")}} 相同。</li>
-</ul>
-
-<h2 id="Example" name="Example">示例</h2>
-
-<pre class="brush: js">var xmlhttp = new XMLHttpRequest(),
- method = 'GET',
- url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(<em>method</em>, <em>url</em>, true);
-xmlhttp.onload = function () {
- // 处理取回的数据(在 xmlhttp.response 中找到)
-};
-xmlhttp.send();
-</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>WHATWG living standard</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.XMLHttpRequestEventTarget.onload")}}</p>
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onloadstart/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onloadstart/index.html
deleted file mode 100644
index 1501afd132..0000000000
--- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onloadstart/index.html
+++ /dev/null
@@ -1,54 +0,0 @@
----
-title: XMLHttpRequestEventTarget.onloadstart
-slug: Web/API/XMLHttpRequestEventTarget/onloadstart
-translation_of: Web/API/XMLHttpRequestEventTarget/onloadstart
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<p><strong><code>XMLHttpRequestEventTarget.onloadstart</code></strong> 在{{domxref("XMLHttpRequest")}} 开始传送数据时被调用</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="syntaxbox"><em>XMLHttpRequest</em>.onloadstart = <em>callback</em>;</pre>
-
-<h3 id="值">值</h3>
-
-<ul>
- <li><code><em>callback</em></code> 是开始传送数据时被调用的回调函数</li>
-</ul>
-
-<h2 id="Example" name="Example">示例</h2>
-
-<pre class="brush: js">var xmlhttp = new XMLHttpRequest(),
- method = 'GET',
- url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(<em>method</em>, <em>url</em>, true);
-xmlhttp.onloadstart = function () {
- console.log("Download underway");
-};
-xmlhttp.send();
-</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">状态</th>
- <th scope="col">说明</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onloadstart')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>WHATWG 现存标准</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.XMLHttpRequestEventTarget.onloadstart")}}</p>
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onprogress/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onprogress/index.html
deleted file mode 100644
index 40641b30a6..0000000000
--- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onprogress/index.html
+++ /dev/null
@@ -1,64 +0,0 @@
----
-title: XMLHttpRequestEventTarget.onprogress
-slug: Web/API/XMLHttpRequestEventTarget/onprogress
-translation_of: Web/API/XMLHttpRequestEventTarget/onprogress
----
-<p>{{APIRef("XMLHttpRequest")}}</p>
-
-<p><strong><code>XMLHttpRequestEventTarget.onprogress</code></strong> 是在 {{domxref("XMLHttpRequest")}} 完成之前周期性调用的函数。</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre><em>XMLHttpRequest</em>.onprogress = <em>callback</em>;</pre>
-
-<h3 id="值">值</h3>
-
-<ul>
- <li><code><em>callback</em></code> 在请求完成之前周期性调用的函数。</li>
-</ul>
-
-<h3 id="Example" name="Example">事件</h3>
-
-<ul>
- <li><em><code>event.loaded</code></em>  已传输的数据量</li>
- <li><em><code>event.total</code></em>  总共的数据量</li>
-</ul>
-
-<pre>XMLHttpRequest.onprogress = function (event) {
- event.loaded;
- event.total;
-};</pre>
-
-<h2 id="Example" name="Example">示例</h2>
-
-<pre>var xmlhttp = new XMLHttpRequest(),
- method = 'GET',
- url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(<em>method</em>, <em>url</em>, true);
-xmlhttp.onprogress = function () {
- //do something
-};
-xmlhttp.send();
-</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>WHATWG living standard</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-<p>{{Compat("api.XMLHttpRequestEventTarget.onprogress")}}</p>