diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-29 22:55:27 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-05 13:19:42 +0900 |
| commit | 76ad2def9076400c5c55d43aa1f58e6a291791d3 (patch) | |
| tree | 3332a57023aa17dab283a596a1d2058c45284a92 /files/ja/web/api/xmlhttprequest/abort/index.html | |
| parent | 09aa8bd8a3deb25db2345e0ff157f663e88a78ed (diff) | |
| download | translated-content-76ad2def9076400c5c55d43aa1f58e6a291791d3.tar.gz translated-content-76ad2def9076400c5c55d43aa1f58e6a291791d3.tar.bz2 translated-content-76ad2def9076400c5c55d43aa1f58e6a291791d3.zip | |
XMLHttpRequest のメソッドを移行
Diffstat (limited to 'files/ja/web/api/xmlhttprequest/abort/index.html')
| -rw-r--r-- | files/ja/web/api/xmlhttprequest/abort/index.html | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/files/ja/web/api/xmlhttprequest/abort/index.html b/files/ja/web/api/xmlhttprequest/abort/index.html deleted file mode 100644 index 7c33a0a30e..0000000000 --- a/files/ja/web/api/xmlhttprequest/abort/index.html +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: XMLHttpRequest.abort() -slug: Web/API/XMLHttpRequest/abort -tags: - - AJAX - - API - - HTTP - - HttpRequest - - XMLHttpRequest - - abort - - cancel - - メソッド - - リファレンス - - 停止 -translation_of: Web/API/XMLHttpRequest/abort ---- -<div>{{APIRef('XMLHttpRequest')}}</div> - -<p><code><strong>XMLHttpRequest.abort()</strong></code> メソッドは、すでに送信された要求を中止します。要求が中止されたら、 {{domxref("XMLHttpRequest.readyState", "readyState")}} が {{domxref("XMLHttpRequest.UNSENT")}} (0) に変化し、要求の {{domxref("XMLHttpRequest.status", "status")}} コードが0に設定されます。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox">XMLHttpRequest.abort()</pre> - -<h3 id="Parameters" name="Parameters">引数</h3> - -<p>なし。</p> - -<h3 id="Return_value" name="Return_value">返値</h3> - -<p><code>undefined</code></p> - -<h2 id="Example" name="Example">例</h2> - -<p>この例では、 MDN のホームページからコンテンツを読み込み始め、ある条件が発生したときに、 <code>abort()</code> を呼び出すことで転送を中止します。</p> - -<pre class="brush: js">var xhr = new XMLHttpRequest(), - method = "GET", - url = "https://developer.mozilla.org/"; -xhr.open(method, url, true); - -xhr.send(); - -if (OH_NOES_WE_NEED_TO_CANCEL_RIGHT_NOW_OR_ELSE) { - xhr.abort(); -} -</pre> - -<h2 id="Specifications" name="Specifications">仕様書</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - <th scope="col">状態</th> - <th scope="col">備考</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('XMLHttpRequest', '#the-abort()-method')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> - -<p>{{Compat("api.XMLHttpRequest.abort")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li><a href="/ja/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest">XMLHttpRequest の利用</a></li> -</ul> |
