回答編集履歴
2
コード修正
test
CHANGED
@@ -6,18 +6,18 @@
|
|
6
6
|
|
7
7
|
```js
|
8
8
|
|
9
|
-
calendarHtml += '<tr>'
|
10
|
-
|
11
9
|
var weekday = [ "日", "月", "火", "水", "木", "金", "土" ];
|
12
10
|
|
13
11
|
for (let i = 0; i < endDayCount; ++i) {
|
12
|
+
|
13
|
+
calendarHtml += '<tr>'
|
14
14
|
|
15
15
|
calendarHtml += `<td>${i}</td>`;
|
16
16
|
|
17
17
|
calendarHtml += `<td>${weekday[(startDay + i) % 7]}</td>`;
|
18
18
|
|
19
|
+
calendarHtml += '</tr>'
|
20
|
+
|
19
21
|
}
|
20
22
|
|
21
|
-
calendarHtml += '</tr>'
|
22
|
-
|
23
23
|
```
|
1
typo
test
CHANGED
@@ -2,9 +2,11 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
`<tr><td>日付</td><td>曜日</td></tr>`
|
5
|
+
`<tr><td>日付</td><td>曜日</td></tr>` という構造で出力する必要がありますから、0からendDayCountの範囲のループ2つを1つにまとめる必要があります。
|
6
6
|
|
7
7
|
```js
|
8
|
+
|
9
|
+
calendarHtml += '<tr>'
|
8
10
|
|
9
11
|
var weekday = [ "日", "月", "火", "水", "木", "金", "土" ];
|
10
12
|
|