- 博客(3)
- 收藏
- 关注
转载 nodejs之egg框架整合ejs模板
config/plugin.js ejs: { enable: true, package: 'egg-view-ejs' } config/config.default.js config.view = { mapping: {'.html': 'ejs'} //左边写成.html后缀,会自动渲染.html文件 }; ejs应用 <% items.forEach(...
2019-08-01 17:17:04 275
转载 nodejs之egg框架mysql应用
config/plugin.js mysql: { enable: true, package: 'egg-mysql', } config/config.default.js config.mysql = { client: { host: '127.0.0.1', port: '3306', ...
2019-08-01 15:41:02 289
转载 nodejs之egg框架mongoose应用
config/plugin.js mongoose: { enable: true, package: 'egg-mongoose' } config/config.default.js config.mongoose = { client: { url: 'mongodb://devuser:devuser123@127.0...
2019-08-01 15:17:38 207
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人