我正在使用 Node.js 托管服務器,并創建了登錄、注冊和菜單。我的登錄看起來像這樣:雖然我的注冊看起來像這樣:這是我的代碼片段:const app = express();app.use(express.static(path.join(__dirname + '/views')));app.get('/', checkAuthenticated, (req, res) => { res.render('index');});app.get('/users/signup', checkAuthenticated, (req, res) => { res.render('signup');});為什么注冊時不會加載 CSS,但登錄時會加載 CSS?
為什么我的索引文件只能加載本地資源?
素胚勾勒不出你
2023-10-14 19:16:28