質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,51 +28,97 @@
|
|
28
28
|
|
29
29
|
```ここに言語を入力
|
30
30
|
|
31
|
-
<table
|
31
|
+
<table class="sample" style="margin-top: 50px">
|
32
32
|
|
33
|
-
|
33
|
+
<thead>
|
34
34
|
|
35
|
-
|
35
|
+
<tr>
|
36
36
|
|
37
|
-
|
37
|
+
<th></th>
|
38
38
|
|
39
|
-
|
39
|
+
<th>タイトル</th>
|
40
40
|
|
41
|
-
|
41
|
+
<th>日時</th>
|
42
42
|
|
43
|
-
|
43
|
+
</tr>
|
44
44
|
|
45
|
-
|
45
|
+
</thead>
|
46
46
|
|
47
|
-
|
47
|
+
<tbody>
|
48
48
|
|
49
|
-
|
49
|
+
<tr>
|
50
50
|
|
51
|
-
|
51
|
+
<td>a</td>
|
52
52
|
|
53
|
-
|
53
|
+
<td>b</td>
|
54
54
|
|
55
|
-
|
55
|
+
</tr>
|
56
56
|
|
57
|
-
<td></td>
|
58
57
|
|
59
|
-
<td></td>
|
60
58
|
|
61
|
-
|
59
|
+
</tbody>
|
62
60
|
|
63
|
-
|
61
|
+
</table>
|
64
62
|
|
65
|
-
<td><input type="radio" name="check" value="check"></td>
|
66
63
|
|
67
|
-
<td></td>
|
68
64
|
|
69
|
-
|
65
|
+
<table class="sample" style="margin-top: 50px">
|
70
66
|
|
71
|
-
|
67
|
+
<thead>
|
72
68
|
|
73
|
-
|
69
|
+
<tr>
|
74
70
|
|
71
|
+
<th></th>
|
72
|
+
|
73
|
+
<th>タイトル</th>
|
74
|
+
|
75
|
+
<th>日時</th>
|
76
|
+
|
77
|
+
</tr>
|
78
|
+
|
79
|
+
</thead>
|
80
|
+
|
81
|
+
<tbody id="tbody">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</tbody>
|
86
|
+
|
75
|
-
|
87
|
+
</table>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<script
|
98
|
+
|
99
|
+
src="C:\Json_table表示用\mnt\field\remote\aaaaa\config\instance_def.json">
|
100
|
+
|
101
|
+
//与えられたタグ名を持つ要素のリストを返す。
|
102
|
+
|
103
|
+
var trs = document.getElementsByTagId('tbody');
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
for (var i = 0, length = JSON_DATA.length; i < length; i++) {
|
108
|
+
|
109
|
+
var data = JSON_DATA[i], tr = trs[i], tds = tr
|
110
|
+
|
111
|
+
.getElementsByTagName('td');
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
td[1].innerText = data.file_name;
|
116
|
+
|
117
|
+
td[2].innerText = data.update_name;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
</script>
|
76
122
|
|
77
123
|
```
|
78
124
|
|