code: function() {
          var result = true;
          if (typeof this.options.onBeforeClose == 'function') {
              result = this.options.onBeforeClose();
              if (result === false) {
                  return;
              }
          }
  
          var self = this;
          this.$container.animate({
              left: '100%'
          }, this.options.speed, function() {
              self.$container.hide();
              self.$mask.hide();
              $('body').css({
                  overflow: 'visible'
              });
          });
  
          if (typeof this.options.zIndex == 'undefined') {
              currentIndex--;
          }
  
          if (this.options.destroyOnClose) {
              this.destroy();
          }
      }
docs: 关闭