首页 > 技术文章 > node.js关于sendFile的路径问题,以及与send的区别

TTblog5 2020-04-01 22:49 原文

https://www.cnblogs.com/agen-su/articles/7762568.html

send就是向页面发送文本

module.exports = function (app) {
    app.get('/', function (req, res) {
        res.send("hello world!")
});
}

推荐阅读