1. 首页
  2. 数据库
  3. 其它
  4. sactive web:Node.js的依赖项注入Web框架 源码

sactive web:Node.js的依赖项注入Web框架 源码

上传者: 2021-02-26 20:28:35上传 ZIP文件 72.01KB 热度 20次
主动网络 :rocket: Node.js的依赖项注入Web框架。 安装 npm install sactive-web 请注意,3.xx与2.xx及以下版本不兼容!!! 产品特点 依赖注入。 路由器,基于对路由进行分组。 拦截器。 基于 。 例 const App = require ( '..' ) ; const app = new App ( ) ; app . bindAny ( 'name' , 'pooky' ) ; app . use ( ( $ctx , $name , $next ) => { $ctx . testname1 = $name ; $nex
用户评论