📜  在 express.js 中设置变量 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:08.100000             🧑  作者: Mango

代码示例1
app.set('oneSetting', 'one');
app.set('twoSetting', 'two');
app.set('view engine','jade');

console.log(app.settings.oneSetting);
console.log(app.settings.twoSetting);
console.log(app.settings['view engine']);