質問編集履歴
2
画像修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
ボタンを押した後、textContentやinnerTextで数式を置き換えるのですが、
|
12
12
|
mathjaxの効果がありません。
|
13
13
|
|
14
|
-

|
15
15
|
|
16
16
|
# 試したこと
|
17
17
|
|
1
脱字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
const btn = document.getElementById('btn');
|
61
61
|
const mathArea = document.querySelector('div');
|
62
62
|
btn.onclick = function() {
|
63
|
-
mathArea.textContent = 'y = (x - 2)^2 - 2';
|
63
|
+
mathArea.textContent = '$y = (x - 2)^2 - 2$';
|
64
64
|
document.querySelector('p').innerText = '平方完成 Complete!!';
|
65
65
|
btn.disabled = true;
|
66
66
|
}
|