回答編集履歴

1

追記

2021/02/15 03:21

投稿

hatena19
hatena19

スコア34347

test CHANGED
@@ -7,3 +7,19 @@
7
7
  document.body.insertAdjacentHTML('beforeend', '<p>テスト</p>');
8
8
 
9
9
  ```
10
+
11
+
12
+
13
+ 追記
14
+
15
+ ---
16
+
17
+ 全て書き換えるなら、下記ですね。(int32_tさんの回答とほぼ同じです。)
18
+
19
+
20
+
21
+ ```js
22
+
23
+ document.body.innerHTML='<p>テスト</p>';
24
+
25
+ ```