但是,网上关于express的教程是在中直接使用路由器的。 app.js .所以当我想在中设置一些变量时index.js (在路由器文件中),我使用app.locals,但它不起作用。
確定! 回上一頁