关于在express.js中显示html页面的问题

关于在express.js中显示html页面的问题,express,Express,我有以下代码。我想显示html页面goki.html和noki.html。我可以看到goki.html页面,但当我尝试/contact.html时,我没有看到noki.html页面。它显示为空白 var express = require('express'); var app = express(); app.get('/index.html', function (req, res) { res.sendFile( __dirname + &

我有以下代码。我想显示html页面goki.html和noki.html。我可以看到goki.html页面,但当我尝试/contact.html时,我没有看到noki.html页面。它显示为空白

  var express = require('express');
    var app = express();
    
    app.get('/index.html', function (req, res) {  
        res.sendFile( __dirname + "/" + "goki.html" );  
     })  
    
     app.get('/contact.html', function (req, res) {  
        res.sendFile( __dirname + "/" + "noki.html" );  
     })  
    
    
    app.listen(3000);