📜  node.js html - Javascript 代码示例

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

代码示例1
const express = require('express');
const app = new express();

app.get('/', function(request, response){
    response.sendFile('absolutePathToYour/htmlPage.html');
});