首先介紹的req.params,當伺服器拿到「/post/:id」這個路徑時,回傳id這個參數(parameter)、寫作「req.params.id」。 app.get('/post/:id', function ...
確定! 回上一頁