質問編集履歴
2
複数の無駄なコードの削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,14 +80,6 @@
|
|
80
80
|
|
81
81
|
app.get('/', (req, res) => {
|
82
82
|
|
83
|
-
res.render('home.ejs');
|
84
|
-
|
85
|
-
});
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
app.get('/', (req, res) => {
|
90
|
-
|
91
83
|
connection.query('SELECT * FROM lists',
|
92
84
|
|
93
85
|
(error, results) => {
|
@@ -154,10 +146,6 @@
|
|
154
146
|
|
155
147
|
<div class = 'home-main'>
|
156
148
|
|
157
|
-
|
158
|
-
|
159
|
-
<ul class="table-body">
|
160
|
-
|
161
149
|
|
162
150
|
|
163
151
|
<% lists.forEach((list) => { %>
|
1
home.ejsの<%= lists.id %>を<%= list.id %>に修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
```
|
53
|
+
```javascript
|
54
54
|
|
55
55
|
const express = require('express');
|
56
56
|
|
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
|
112
112
|
|
113
|
-
```
|
113
|
+
```html
|
114
114
|
|
115
115
|
<!DOCTYPE html>
|
116
116
|
|
@@ -166,7 +166,7 @@
|
|
166
166
|
|
167
167
|
<div class="list-data">
|
168
168
|
|
169
|
-
<span class="list-name"><%= list
|
169
|
+
<span class="list-name"><%= list.id %></span>
|
170
170
|
|
171
171
|
</div>
|
172
172
|
|