1、app.js中 加入
ejs = require('ejs'),
app.engine('.html', ejs.__express);
app.set('view engine', 'html');
Nodejs ‘jade’换成 ‘html’
Nodejs ‘jade’换成 ‘html’

2、经路由,调用HTML
Nodejs ‘jade’换成 ‘html’
Nodejs ‘jade’换成 ‘html’

3、Html
Nodejs ‘jade’换成 ‘html’Nodejs ‘jade’换成 ‘html’

4、效果
Nodejs ‘jade’换成 ‘html’Nodejs ‘jade’换成 ‘html’

相关文章:

  • 2021-05-09
  • 2021-11-21
  • 2021-11-21
  • 2021-10-11
  • 2022-12-23
  • 2022-01-09
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案