0
如何让我的css文件被节点js读取。我有下面的代码阅读的HTML文件。从nodejs读取css文件
function displayForm(res) {
fs.readFile('index.html', function (err, data) {
res.writeHead(200, {
'Content-Type': 'text/html',
});
res.write(data);
res.end();
});
}