0
有一些代码:在app.get Node.js的快速正则表达式()
app.get(/^\/test\?sid$/, function (req, res) {
console.log('sid: ', req.params[0]);
res.sendfile(__dirname + '/public/login/index.html');
});
输出:
Cannot GET /test?sid