【发布时间】:2016-06-11 03:47:27
【问题描述】:
如何让节点 js 读取我的 css 文件。我有下面代码读取的 html 文件。
function displayForm(res) {
fs.readFile('index.html', function (err, data) {
res.writeHead(200, {
'Content-Type': 'text/html',
});
res.write(data);
res.end();
});
}
【问题讨论】: