如果您是從另一個目錄執行Express 應用程式,保險作法是使用您想提供之目錄的絕對路徑: app.use('/static', express.static(__dirname + '/public')); ...
確定! 回上一頁