使用node.js的文件系统读取html的内容再使用response.sendFile对请求进行相应. var fs = require('fs'); response.sendFile(fs.readFileSync('index.html','UTF-8'));
使用node.js的文件系统读取html的内容再使用response.sendFile对请求进行相应.