📅  最后修改于: 2022-03-11 15:02:04.945000             🧑  作者: Mango
app.get('/', function (req, res, next) {
fs.readFile('/file-does-not-exist', function (err, data) {
if (err) {
next(err) // Pass errors to Express.
} else {
res.send(data)
}
})
})