一、继承
1.实现单例

二、封装Koa操作Mongodb数据库的DB类库
1.多次实例化解决办法:单例

//解决多次链接


三、DB库



四、Koa应用生成器以及Koa路由模块化

2.路由模块化
1、在目录下面新建一个文件夹routes
2、在routes里面配置对应的子页面
3、比如在routes新建index.js

4.然后在主应用中加载子路由模块:

3.路由视图模块化


五、Koa打造企业级Cms内容管理系统-XMind分析功能、ERStudio设计数据库ER图
1.cms:内容管理系统

3.

网友评论