docs: function(index, type) {
  			var self = this;
  			type = type || 'center';
  			if (index < 0) index = self.images.length - 1;
  			if (index > self.images.length - 1) index = 0;
  			self.index = index;
  			var item = $.dom("<div class='mui-imageviewer-item'></div>")[0];
  			item.appendChild($.dom('<span><img src="' + self.images[self.index].src + '"/></span>')[0]);
  			item.classList.add('mui-imageviewer-item-' + type);
  			self.viewer.appendChild(item);
  			self.state.innerText = (self.index + 1) + "/" + self.images.length;
  			//重置初始缩放比例
  			self.scaleValue = 1;
  			self.dragX = 0;
  			self.dragY = 0;
  			return item;
  		}