suchen

Heim  >  Fragen und Antworten  >  Hauptteil

node.js - 下面代码里面的pkg是什么呀?pkg.name又是什么?为什么pkg.name等于session里面的名字?

var pkg=require("./package");
app.listen(config.port,function(){
console.log(${pkg.name} listening on port ${config.port});
});

高洛峰高洛峰2863 Tage vor1164

Antworte allen(1)Ich werde antworten

  • 巴扎黑

    巴扎黑2017-04-17 16:13:35

    是package.json文件

    Antwort
    0
  • StornierenAntwort