这适用于Express 4上的/ path和/ path / foo,请注意
*before
?。
router.get('/path/:id*?', function(req, res, next) { res.render('page', { title: req.params.id });});
这适用于Express 4上的/ path和/ path / foo,请注意
*before
?。
router.get('/path/:id*?', function(req, res, next) { res.render('page', { title: req.params.id });});