code: function slide(x, y, duration, beforeCallback) {
    const self = this;
    if (beforeCallback) {
      beforeCallback();
    }
  
    /***
     * 滑动内部实现
     */
    function slideSub() {
      self.getPageJO().css({
        "transform": "translate3d(" + x + "," + y + ",0)",
        "-webkit-transform": "translate3d(" + x + "," + y + ",0)",
        "transition": "transform " + duration + "ms cubic-bezier(0.1,0.25,0.1,1)",
        "-webkit-transition": "transform " + duration + "ms cubic-bezier(0.1,0.25,0.1,1)"
      });
    }
  
    if (duration === 0) {
      slideSub();
    } else {
      window.setTimeout(slideSub, 100);
    }
  }
docs: 平移 core
  @access private
  @param {number} x - x的平移值
  @param {number} y - y的平移值
  @param {number} duration - 平移经过的时间
  @param {Function} beforeCallback - 平移之前的回调函数