diff options
author | Tanner Dolby <tannercdolby@gmail.com> | 2022-02-22 01:49:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 17:49:36 +0800 |
commit | 6e9fe98036090a37cc6247b873845505e5b512fb (patch) | |
tree | 5fc00117ddfd9f448eb9e8011b5bd7f6d8000e8d /files/zh-cn/web/api/xmlhttprequest/statustext/index.html | |
parent | 70c3e11f3335e7701325f125fd712c84d6c1f9bf (diff) | |
download | translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.gz translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.bz2 translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.zip |
Removes empty <div> or <p> elements from pages (#3093)
* Removes all empty paragraph elements
* Removes all empty div elements
* Preserve empty div in code snippet
* Preserve empty elements inside code snippets
* Remove fr files which were converted into markdown
* Web/CSS/transform-function/scaleX()/index.html
The file is already renamed to index.md。
* remove not needed file
* Resolve remaining conflict
Co-authored-by: julieng <julien.gattelier@gmail.com>
Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Diffstat (limited to 'files/zh-cn/web/api/xmlhttprequest/statustext/index.html')
-rw-r--r-- | files/zh-cn/web/api/xmlhttprequest/statustext/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/xmlhttprequest/statustext/index.html b/files/zh-cn/web/api/xmlhttprequest/statustext/index.html index cd9bd26b5f..b2e722a4b9 100644 --- a/files/zh-cn/web/api/xmlhttprequest/statustext/index.html +++ b/files/zh-cn/web/api/xmlhttprequest/statustext/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/XMLHttpRequest/statusText <div>只读属性 <code><strong>XMLHttpRequest.statusText</strong></code> 返回了<code>XMLHttpRequest</code> 请求中由服务器返回的一个<a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMString" title="DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String."><code>DOMString</code></a> 类型的文本信息,这则信息中也包含了响应的数字状态码。不同于使用一个数字来指示的状态码<code><a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHTTPRequest/status" title="The XMLHttpRequest.status property returns an unsigned short with the status of the response of the request. These are the standard HTTP status codes. For example, status is 200 denotes a successful request. Before the request is complete, the value of status will be 0.">XMLHTTPRequest.status</a></code>,这个属性包含了返回状态对应的文本信息,例如"OK"或是"Not Found"。如果请求的状态<code><a href="/en-US/docs/Web/API/XMLHttpRequest/readyState">readyState</a></code>的值为"UNSENT"或者"OPENED",则这个属性的值将会是一个空字符串。</div> -<div></div> + <div>如果服务器未明确指定一个状态文本信息,则<code>statusText</code>的值将会被自动赋值为"OK"。</div> |