Express req.query always empty
问题 I was using express route like this and I want my urls to contain query strings initially. app.get('/', function(req, res){ res.render('index', {}); }); app.get('/us01', function(req, res){ console.log('query: '+JSON.stringify(req.query)); res.render('templates/us01', {}); }); app.get('/benchmark', function(req, res){ res.render('templates/benchmark', {}); }); However, I never get my query strings printed no matter what query strings I append after /us01. For example, "localhost:9200/us01?a=1