express不允许您基于查询字符串进行路由。如果存在相关参数,您可以添加一些执行某些操作的中间件;
app.use(function (req, res, next) { if (req.query.something) { // Do something; call next() when done. } else { next(); }});app.get('/someroute', function (req, res, next) { // Assume your query params have been processed});


