Express使用html模闆 express預設使用jade模闆,可以配置讓其支援使用html模闆。 1.安裝ejs,在項目根目錄安裝ejs。 npm install ejs 2.引入ejs 3.設定html引擎