<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="/searchList" method="post" >
<input type="text" name="content" id="content" value="">
<input type="submit" id="send" value="送出">
</form>
</body>
</html>
app.post('/searchList',function(req,res){
console.log(req.body.title);
var title = req.body.title;
//轉址(網址為search=>無法傳值)
//res.redirect('search');
//轉址渲染(網址為search)
res.render('search',{
'title':title
});
})