^代表与字符串开始的地方匹配,不匹配任何字符
$与字符串结束的地方匹配,不匹配任何字符
app.all(/^\/index(\/.+)*$/i,(req,res)=>{
// res.end('Hello,你好');
res.send('index');
});
^代表与字符串开始的地方匹配,不匹配任何字符
$与字符串结束的地方匹配,不匹配任何字符
app.all(/^\/index(\/.+)*$/i,(req,res)=>{
// res.end('Hello,你好');
res.send('index');
});