文章詳情頁(yè)
node.js - angular.js高級(jí)程序設(shè)計(jì)書(shū)本開(kāi)頭配置環(huán)境出錯(cuò),誰(shuí)能給解答一下
瀏覽:109日期:2024-07-25 09:41:36
問(wèn)題描述
server.jsvar connect=require(’connect’);serveStatic=require(’serve-static’);var app=connect();app.use(serveStatic('../angularjs'));app.listen(5000);運(yùn)行server.js沒(méi)反應(yīng),localhost:5000/test.html顯示cant get test/html
問(wèn)題解答
回答1:app.use(serveStatic('./angularjs'));這一行地址不對(duì)
排行榜

熱門(mén)標(biāo)簽