/?parameter="test" 기존 request.param("parameter") 에서... 아래와 같이 업데이트됨; var app = express(); app.post 일때, request.body.parameter app.get 일때, request.params.parameter 어떤 방식으로 값이 들어오는지 보려면 console.log(request.params); console.log(request.body); console.log(request.query); 를 찍어보자.. 또한 app.use(bodyParser.urlencoded({ extended: true })); bodyParser 가 urlencoded 로 되어 있어야된다. JSON으로 되있을 경우 JSON 형식만 읽어오기떄문에..
웹프로그래밍/node.js & Typescript
2015. 6. 10. 12:19