Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김윤지
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김주희
2019-06-06 18:48:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab7ed828036fee99f493c8cf237a6cb142f755ba
ab7ed828
1 parent
7978dc6d
ejs로 데이터 전송 안되는 문제 해결
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
routes/index.js
routes/index.js
View file @
ab7ed82
...
...
@@ -4,8 +4,8 @@ var db = require('../lib/db_total');
/* GET home page. */
router
.
post
(
'/starting'
,
(
req
,
res
)
=>
{
res
.
redirect
(
`/name/
${
req
.
body
.
name
}
/birth/
${
req
.
body
.
birth
}
`
);
router
.
post
(
'/starting'
,
(
req
,
res
)
=>
{
res
.
redirect
(
`/name/
${
req
.
body
.
name
}
/birth/
${
req
.
body
.
birth
}
`
);
})
router
.
get
(
'/name/:name/birth/:birth'
,
(
req
,
res
)
=>
{
...
...
@@ -23,10 +23,10 @@ router.get('/name/:name/birth/:birth', (req, res) => {
const
birth
=
req
.
params
.
birth
;
//const address = req.params.address;
////////////////////////////////////////
var
deathArr
=
new
Array
();
var
mhurtArr
=
new
Array
();
var
lhurtArr
=
new
Array
();
var
occurArr
=
new
Array
();
var
tdeathArr
=
new
Array
();
//사망자수
var
mhurtArr
=
new
Array
();
//중상자수
var
lhurtArr
=
new
Array
();
//경상자수
var
occurArr
=
new
Array
();
//총 발생수
////////////////////////////////////////
...
...
@@ -48,7 +48,7 @@ router.get('/name/:name/birth/:birth', (req, res) => {
wsArr
.
unshift
(
rows
[
i
].
wind
);
rainArr
.
unshift
(
rows
[
i
].
rain
);
////
deathArr
.
unshift
(
rows
[
i
].
tdeath
);
t
deathArr
.
unshift
(
rows
[
i
].
tdeath
);
mhurtArr
.
unshift
(
rows
[
i
].
mhurt
);
lhurtArr
.
unshift
(
rows
[
i
].
lhurt
);
occurArr
.
unshift
(
rows
[
i
].
occurence
);
...
...
@@ -71,7 +71,7 @@ router.get('/name/:name/birth/:birth', (req, res) => {
dataLen
,
name
,
birth
,
deathArr
,
t
deathArr
,
mhurtArr
,
lhurtArr
,
occurArr
...
...
Please
register
or
login
to post a comment