📅  最后修改于: 2022-03-11 15:02:26.435000             🧑  作者: Mango
//Add the following run time options to your code
app.engine(
"handlebars",
exphbs({
defaultLayout: "main",
runtimeOptions: {
allowProtoPropertiesByDefault: true,
allowProtoMethodsByDefault: true,
},
})
);