docs: function(options) {
          // 在 body 下创建对话框和遮罩层
          this.$container = $('<div style="display:none;"></div>');
          this.$mask = $('<div class="biz-mask" style="display:none;"></div>');
          this.$container.appendTo('body').after(this.$mask);
  
          // 填充 $container
          var self = this;
          this.$container.addClass([defaultClass, options.customClass, prefix + options.theme].join(' '))
              .html([
                  '<div class="biz-dialog-title">',
                  '<span class="biz-dialog-title-text">', this.$main.attr('data-title') || options.title, '</span>',
                  options.canClose ? '<i class="biz-dialog-close biz-icon">&#xe5cd;</i></div>' : '</div>',
                  '<div class="biz-dialog-content"></div>',
                  '<div class="biz-dialog-bottom"></div>'
              ].join(''))
              .on('click.bizDialog', '.biz-dialog-close', function() {
                  self.close();
              });
          this.$container.find('.biz-dialog-content').append(this.$main.show()); // 把目标元素移至 $container 中
          this.updateButtons(options.buttons);
  
          // 设置 $container 尺寸和位置
          var containerWidth = typeof options.width !== 'undefined' ? Math.max(parseInt(options.width, 10), minWidth) : minWidth,
              containerHeight;
          if (typeof options.height !== 'undefined') {
              containerHeight = Math.max(parseInt(options.height, 10), minHeight);
          } else {
              this.$container.show();
              containerHeight = Math.max(this.$container.height(), minHeight);
              this.$container.hide();
          }
          this.$container.css({
              width: containerWidth,
              height: containerHeight,
              position: options.position,
              marginLeft: -Math.floor(containerWidth / 2),
              marginTop: -Math.floor(Math.min(containerHeight, $(window).height()) / 2)
          });
          this.$container.find('.biz-dialog-content').css({
              height: containerHeight - 150
          });
  
          // 拖拽
          if (options.draggable) {
              this.draggable = new Draggable(this.$container[0], {
                  handle: this.$container.find('.biz-dialog-title').addClass('biz-draggble')[0],
                  setPosition: options.position === 'absolute',
                  limit: {
                      x: [0, $('body').width() - containerWidth],
                      y: [0, $('body').height() - containerHeight]
                  }
              });
              this.$container.css({
                  margin: 0,
                  display: 'none',
                  left: Math.floor(($(window).width() - containerWidth) / 2),
                  top: containerHeight < $(window).height() ? Math.floor(($(window).height() - containerHeight) / 2) : 0
              });
          }
      }