【发布时间】:2012-05-07 04:35:50
【问题描述】:
当我编写 localhost/profile 时,css 可以工作。 但是当我写 localhost/profil/ 时,css 不起作用。
app.use(express.static(__dirname+'/public'));
app.get('/profil',[checkCo],require('./routes/profil.js'));
为什么?
谢谢!
编辑:
因为它认为 profil/ 是一个文件夹,所以我该如何解决呢?
【问题讨论】:
-
为什么这对你来说是个问题?