Nodejs ‘jade’换成 ‘html’

1、app.js中 加入 ejs = require ( 'ejs' ), app . engine ( '.html' , ejs . __express ); app . set ( 'view engine' , 'html' ); 2、经路由,调用HTML 3、Html 4、效果
相关文章
相关标签/搜索