 悬赏园豆:10
                [已关闭问题] 
            
                    关闭于 2014-10-06 23:11
                悬赏园豆:10
                [已关闭问题] 
            
                    关闭于 2014-10-06 23:11
                 
        我是照官方文档上弄的
app.locals({
  inspect:function(obj){
    return util.inspect(obj,true);
  }
});
app.use(function(req,res,next){
  res.locals.headers = req.headers;
  next();
});
app.get('/helper',function(req,res){
  res.render('helper',{title:'Helpers'});
});
helper.ejs代码如下:<%= inspect(headers)%>
问什么访问总是报headers没有定义的错误,求指点!!