更改ejs模板引擎的後綴爲html

安裝 EJS 在項目目錄右鍵->Open Command Prompt Here html 輸入 npm install ejs npm 打開app.js //app.set('view engine', 'jade');註釋掉這句,添加下面兩句 app app.set('view engine', 'ejs'); post app.engine('html', require('ejs').re
相關文章
相關標籤/搜索