首页 > 问答 > 正文
server.jsvar connect=require('connect');serveStatic=require('serve-static');var app=connect();app.use(serveStatic("../angularjs"));app.listen(5000);运行server.js没反应,localhost:5000/test.html显示cant get test/html
巴扎黑2017-04-17 15:57:32
app.use(serveStatic("./angularjs"));这一行地址不对
app.use(serveStatic("./angularjs"));