code: function wrapMethod(obj, name, app) {
      var method = obj[name];
  
      // 保存原始内容
      wrappers.push({
          obj: obj,
          name: name,
          method: method
      });
  
      obj[name] = function (callback) {
          var args = [];
          for (var i = 1; i < arguments.length; i++) {
              args.push(arguments[i]);
          }
  
          var ctx = app.getContext();
          args.unshift(function () {
              app.revertContext(ctx);
              ctx = null;
              callback.apply(null, arguments);
          });
  
          return method.apply(this, args);
      };
  }
docs: 包装函数
  处理app的上下文切换
  
  @inner
  @param {Object} obj 模块
  @param {string} name 方法名
  @param {Object} app app