webStrom用node寫的html頁面Failed to load resource: the server responded with a status of 404 (Not Found)

webStrom 用node寫的html頁面 1、頁面顯示的錯誤信息,因爲找不到js和css文件 2、網頁點擊右鍵檢查後看console輸出 顯示的錯誤 3、控制檯輸出 4、我原來把頁面放到的是views目錄下,就會上述的錯誤,當我把index.html放到public目錄下後就可以正常顯示頁面了,但是需要把app.js裏面的app.set(‘views’,path.join(__dirname,
相關文章
相關標籤/搜索