📜  车把:已拒绝访问以解析属性 - Javascript 代码示例

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

代码示例1
//Add the following run time options to your code
app.engine(
  "handlebars",
  exphbs({
    defaultLayout: "main",
    runtimeOptions: {
      allowProtoPropertiesByDefault: true,
      allowProtoMethodsByDefault: true,
    },
  })
);