Showing
2 changed files
with
12 additions
and
19 deletions
| 1 | { | 1 | { |
| 2 | - "first_user": { | 2 | + "1":{ |
| 3 | - "price": "first_pass", | 3 | + "name": "바게뜨", |
| 4 | - "shape": "abet" | 4 | + "price": 20000, |
| 5 | + "shape": "빵", | ||
| 5 | "kinds": "양식" | 6 | "kinds": "양식" |
| 6 | - }, | 7 | + }, |
| 7 | - "second_user": { | 8 | + "2":{ |
| 8 | - "price": "second_pass", | 9 | + "name": "도시락", |
| 9 | - "shape": "betty" | 10 | + "price": 10000, |
| 11 | + "shape": "밥", | ||
| 10 | "kinds": "한식" | 12 | "kinds": "한식" |
| 11 | - } | 13 | + |
| 14 | + } | ||
| 12 | } | 15 | } | ... | ... |
| ... | @@ -18,20 +18,10 @@ | ... | @@ -18,20 +18,10 @@ |
| 18 | <p><%= description %></p> | 18 | <p><%= description %></p> |
| 19 | <article> | 19 | <article> |
| 20 | <form action='/food' method='post'> | 20 | <form action='/food' method='post'> |
| 21 | - <!--제출된 정보를 보내는 역할 | 21 | + |
| 22 | - get으로 보내는 경우 (url)querystring으로 전달됨. | ||
| 23 | - 기본 초기값이 get임 | ||
| 24 | - post방식은 눈에 보이지 않는 방식으로 전달 | ||
| 25 | - post는 bodyParser모듈에서 받을 수 있음 | ||
| 26 | - --> | ||
| 27 | <p> | 22 | <p> |
| 28 | 가격 : | 23 | 가격 : |
| 29 | <input type="text" name="price" placeholder="price"> | 24 | <input type="text" name="price" placeholder="price"> |
| 30 | - <!-- | ||
| 31 | - get인 경우 req.query.title로 전달 | ||
| 32 | - post인 경우 req.body.title로 전달 | ||
| 33 | - req.body.<name> | ||
| 34 | - --> | ||
| 35 | </p> | 25 | </p> |
| 36 | <p> | 26 | <p> |
| 37 | 형태 : | 27 | 형태 : | ... | ... |
-
Please register or login to post a comment