摘要:        
通配URL*(可代表任何字符串) 例如: app.get('/test/*', function(req, res){ res.send(req.query.aa); }) '/test/*通配test/...的URL 占位符URL(匹配一级) 例如: app.get('/test/:a', fun    阅读全文
posted @ 2016-11-22 16:04
炎泽
阅读(926)
评论(0)
推荐(0)
        
            
        
        
摘要:        
app.use(path, function, [, function]) 功能: 为path注册中间函数,即根据path使用不同函数进行处理,默认path是"/",也就是处理任何请求,值得注意的是他会处理path以及path下的子路径,例如path为"/a"时,会处理"/a", "/a/b.png    阅读全文
posted @ 2016-11-22 11:32
炎泽
阅读(5440)
评论(0)
推荐(1)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号