Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김태민
/
OpenSource_Project
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
seungmi
2019-11-27 23:59:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bc0b79ba3b1bd0e060faf7e27644208533f3db52
bc0b79ba
1 parent
65570b3f
버그수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
data/food.json
views/recommendation.ejs
data/food.json
View file @
bc0b79b
{
"first_user"
:
{
"price"
:
"first_pass"
,
"shape"
:
"abet"
"1"
:{
"name"
:
"바게뜨"
,
"price"
:
20000
,
"shape"
:
"빵"
,
"kinds"
:
"양식"
},
"second_user"
:
{
"price"
:
"second_pass"
,
"shape"
:
"betty"
},
"2"
:{
"name"
:
"도시락"
,
"price"
:
10000
,
"shape"
:
"밥"
,
"kinds"
:
"한식"
}
}
}
...
...
views/recommendation.ejs
View file @
bc0b79b
...
...
@@ -18,20 +18,10 @@
<p>
<
%= description %>
</p>
<article>
<form
action=
'/food'
method=
'post'
>
<!--제출된 정보를 보내는 역할
get으로 보내는 경우 (url)querystring으로 전달됨.
기본 초기값이 get임
post방식은 눈에 보이지 않는 방식으로 전달
post는 bodyParser모듈에서 받을 수 있음
-->
<p>
가격 :
<input
type=
"text"
name=
"price"
placeholder=
"price"
>
<!--
get인 경우 req.query.title로 전달
post인 경우 req.body.title로 전달
req.body.<name>
-->
</p>
<p>
형태 :
...
...
Please
register
or
login
to post a comment