nodejs中直接返回一个html的文件

144 阅读1分钟

res.sendFile(__dirname+'/ind.html')  // 使用sendFile()  #www.expressjs.com.cn/4x/api.html…