code: function reset() {
      /***
       * 从右到左
       */
      if (new RegExp(/.+left/g).exec(transition)) {
        x = "100%";
      }
      /***
       * 从左到右
       */
      else if (new RegExp(/.+right/g).exec(transition)) {
        x = "-100%";
      }
      /***
       * 从下到上
       */
      else if (new RegExp(/.+up/g).exec(transition)) {
        y = "100%";
      }
      /***
       * 从上到下
       */
      else if (new RegExp(/.+down/g).exec(transition)) {
        y = "-100%";
      }
  
      /***
       * 如果过渡类型是微信类型且过渡时间为零则重置之前的面板位置
       */
      if (transition.indexOf("wx") === 0 && duration !== 0) {
        delete self.ctmobile.getPageByIndex(self.ctmobile.getHistoryLength() - 2).pageTransitionType;
        slide.call(self.ctmobile.getPageByIndex(self.ctmobile.getHistoryLength() - 2), 0, 0, duration / 2);
      }
      /***
       * 如果过渡类型是push且过渡时间为零则重置之前的面板位置
       */
      else if (transition.indexOf("push") === 0 && duration !== 0) {
        delete self.ctmobile.getPageByIndex(self.ctmobile.getHistoryLength() - 2).pageTransitionType;
        slide.call(self.ctmobile.getPageByIndex(self.ctmobile.getHistoryLength() - 2), 0, 0, duration);
      }
  
      /***
       * 当前页firstExecute
       */
      if (transition.indexOf("material") === 0) {
        if (duration !== 0) {
          if (beforeCallback) {
            beforeCallback();
          }
          this.getPageDOM().classList.add("materialHide");
        }
      } else {
        slide.call(this, x, y, duration, beforeCallback);
      }
    }
docs: **
  重置