docs: function server({ router, allowOrign = '*' } = {}) {
      let app = express(),
          listen = app.listen;
  
  
      // 允许跨域
      app.use((req, res, next) => {
          res.header('Access-Control-Allow-Origin', allowOrign);
          res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
          res.header('Access-Control-Allow-Headers', 'X-Requested-With');
          res.header('Access-Control-Allow-Credentials', 'true');
          next();
      });
  
      // 监听静态文件
      app.use(express.static(path.resolve(cwd, 'public')));
      app.use(express.static(path.resolve(cwd, 'static')));
  
      // 解析【body】
      app.use(bodyParser.json());
      app.use(bodyParser.urlencoded({ extended: true }));
  
      // 加载路由
      if (router) {
          app.use(router);
      }
  
      // 定义配置接口
      app.adopt = install => {
          if (install) {
              if (typeof install === 'function' && install.length === 1) {
                  install.call(app, app);
              } else if (typeof install === 'object' && typeof install.install === 'function') {
                  install.install(app);
              }
          }
      };
  
      // 启动监听
      app.listen = (port, host, callback) => {
  
          // 重载参数
          if (typeof host === 'function') {
              return app.listen(port, 'localhost', host);
          }
  
          // 监听错误信息
          app.use(function (err, req, res, next) {
  
              // 打印错误
              console.error(err.stack);
  
              // 返回错误信息
              if (req.xhr) {
                  res.status(500).send({ error: 'Something failed!' });
              } else {
                  next(err);
              }
          });
  
          // 启动服务
          listen.call(app, port, host, function() {
              let { address, port } = this.address();
  
              // 设置本地地址
              if (!address || address === '::') {
                  address = 'localhost';
              }
  
              // 打印信息
              console.log('-'.repeat(60));
              console.log(`Server running at: http://${ address }:${ port || '80' }/`);
              console.log('-'.repeat(60));
  
              // 执行回调
              callback && callback(app);
          });
      };
  
      // 返回结果
      return app;
  }