无法在expressjs上为angular提供静态文件

时间:2016-10-24 08:36:49

标签: html css angularjs express

我无法在快递上提供静态文件。这是我的代码:

app.use("/#", express.static(__dirname + '../client/partials/javascripts'));
app.use( express.static(__dirname + '/../client/partials/stylesheets'));
app.use('/?#/', express.static(__dirname + '../client/partials/stylesheets'));
app.use('/?', express.static(__dirname + '../client/partials/stylesheets'));
app.use('/#', express.static(__dirname + '../client/partials/stylesheets'));
app.use('/style', express.static(__dirname + '../client/partials/stylesheets'));
app.use('http://localhost:3000/?#/', express.static(__dirname + '../client/partials/stylesheets'));

我检查了目录路径,这是正确的......请帮帮我们......

0 个答案:

没有答案