diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-07-30 12:20:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 12:20:44 +0900 |
commit | 23a139d3fc66b31df0c0c26885c98db3caadfdb0 (patch) | |
tree | 95b4df852d845b399adc9577ded8a0ab27893dc5 /files/ja/web/api/characterdata/remove | |
parent | 9954d151cc16c4906d2d782ef5758170f47569a5 (diff) | |
download | translated-content-23a139d3fc66b31df0c0c26885c98db3caadfdb0.tar.gz translated-content-23a139d3fc66b31df0c0c26885c98db3caadfdb0.tar.bz2 translated-content-23a139d3fc66b31df0c0c26885c98db3caadfdb0.zip |
ChildNode/remove を各インターフェイスに分割 (#1584)
Diffstat (limited to 'files/ja/web/api/characterdata/remove')
-rw-r--r-- | files/ja/web/api/characterdata/remove/index.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/files/ja/web/api/characterdata/remove/index.html b/files/ja/web/api/characterdata/remove/index.html new file mode 100644 index 0000000000..70e3baa8cb --- /dev/null +++ b/files/ja/web/api/characterdata/remove/index.html @@ -0,0 +1,48 @@ +--- +title: CharacterData.remove() +slug: Web/API/CharacterData/remove +tags: + - API + - CharacterData + - DOM + - Method +browser-compat: api.CharacterData.remove +translation_of: Web/API/CharacterData/remove +--- +<div>{{APIRef("DOM")}}</div> + +<p><code><strong>CharacterData.remove()</strong></code> メソッドは、テキストを削除します。</p> + +<h2 id="Syntax">構文</h2> + +<pre class="brush: js">remove()</pre> + +<h2 id="Example">例</h2> + +<h3 id="Using_remove"><code>remove()</code> の使用</h3> + +<pre class="brush: html"> +<p id="myText">Some text</p> +</pre> + +<pre class="brush: js">let text = document.getElementById('myText').firstChild; +text.remove(); // テキストを削除 +</pre> + +<pre class="brush: html"> +<p id="myText"></p> +</pre> + +<h2 id="Specifications">仕様書</h2> + +{{Specifications}} + +<h2 id="Browser_compatibility">ブラウザーの互換性</h2> + +<p>{{Compat}}</p> + +<h2 id="See_also">関連情報</h2> + +<ul> + <li>{{domxref("Element.remove()")}}</li> +</ul> |