docs: function(data, req, res, servConfig){
          if(!data.cnt) return false;
          // utils.log(utils.chalk.green("----------ajax json:\n", data.type));
          try{
              switch(data.type){
                  case 'mjson': //处理mockjson
                      //utils.log(utils.chalk.green(mockjs.mock(JSON.parse(data.cnt))))
                      this.acao && res.setHeader("Access-Control-Allow-Origin","*");
                      data.cnt = JSON.stringify(mockjs.mock(JSON.parse(data.cnt)), null, 4);
                  case 'json':
                      this.acao && res.setHeader("Access-Control-Allow-Origin","*");
                      res.writeHead(200, {
                          'Content-Type': utils.MIME['json']
                      });
                      res.write(data.cnt);
                      res.end();
                      break;
                  case 'js':
                      //data = new vm.script(data[0]);
                      // 将分解好的url给mock用户*.js 
                      // 只能拦截所起服务下的mock 跨域的不能拦截需用fiddler或charles之类的代理到servermock所起服务下
                      req.parseUrl = req.wwwurl = url.parse(servConfig.protocol + '://' + req.headers.host + req.url);
                      var qstr = req.wwwurl.query ? qs.parse(req.wwwurl.query) : {},
                          query = {};
                      for(var i in qstr){
                          var $ = /(.+)\[(.+)\]/.exec(i);
                          // utils.log(utils.chalk.green("$: ", $));
                          $ ? (query[$[1]] || (query[$[1]] = {})) && (query[$[1]][$[2]] = qstr[i]):
                              query[i] = qstr[i];  
                      }
                      // utils.log(utils.chalk.green("qstr: ", qstr));
                      //extname === 'html' && utils.log(utils.chalk.green(req, '\n\n\n\n', req.wwwurl))
                      req.queryObj = req.wwwurl.queryObj = query;
                      //utils.log(utils.chalk.green('----------mock js func:\n', data.cnt.toString()));
                      vm.runInThisContext('(' + data.cnt + ')')(req, res, require);
                      break;
                  default:
                      utils.log(utils.chalk.yellow("mock 暂只支持.mjson .json .js文件"));
                      res.end("mock 暂只支持.mjson .json .js文件");
              }
          } catch(e){
              utils.log(utils.chalk.red("mock error: "), e);
          }
          return true;
      }