diff options
author | ZivyHu <huzhiweiop@163.com> | 2021-09-28 22:31:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 22:31:13 +0800 |
commit | 8949c9132987437a305dfafbf24520a58e884797 (patch) | |
tree | b99f67baca548594a5aaac6e90e658729ccfd404 /files/zh-cn | |
parent | 708d9e69fecf607ed87912061b6a7dab637e3677 (diff) | |
download | translated-content-8949c9132987437a305dfafbf24520a58e884797.tar.gz translated-content-8949c9132987437a305dfafbf24520a58e884797.tar.bz2 translated-content-8949c9132987437a305dfafbf24520a58e884797.zip |
sync one more paragraph (#2555)
translate more information from English to Simplied-Chinese
Diffstat (limited to 'files/zh-cn')
-rw-r--r-- | files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html b/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html index c6931f08ef..3c604e5026 100644 --- a/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html +++ b/files/zh-cn/web/api/xmlhttprequesteventtarget/onerror/index.html @@ -11,6 +11,8 @@ translation_of: Web/API/XMLHttpRequestEventTarget/onerror <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> |