是否可以从expressjs中的路由器访问视图中的元素。例如,我可以访问视图并从ExpressJS中的路由器更改以下代码吗?
<div id="I would like to be accessed from the router">
<p>This is the index page and I am attached to an index router</p>
</div>
router.get('/', function(req, res, next) {
var document.get...("I would like to be accessed from the router");
res.render('NOOOOYOUCANT!!!', { title: 'Why can't I access the view?'});
});
为什么我无法从路由器访问视图中的css?