code: function(options) {
          var title = this.$main.attr('title'),
              id = this.$main.attr('id') || '',
              theme = options.theme;
  
          var switchContainer = '<label class="' + defaultContainerClass + ' biz-switch-container-' + theme + '" for="' + id + '"><span class="biz-switch" id=""><span class="biz-switch-inner"></span></span><span>' + title + '</span></label>';
  
          this.$main.after(switchContainer).hide();
  
          this.$switchContainer = this.$main.next();
          this.$switchDom = this.$switchContainer.find('.biz-switch');
          //初始状态
          if (this.$main.attr('checked')) {
              this.$switchDom.addClass(checkedClass);
          } else {
              this.$switchDom.addClass(defaultClass);
          }
  
          var self = this;
          this.$switchContainer.on('click.bizSwitch', function() {
              if (!self.main.disabled) {
                  if (self.main.checked) {
                      self.$switchDom.attr('class', [defaultClass].join(' '));
                  } else {
                      self.$switchDom.attr('class', [defaultClass, checkedClass].join(' '));
                  }
                  if (id === '') {
                      self.main.checked = !self.main.checked;
                  }
              }
          });
      }
docs: 初始化
  @param {Object} options 参数
  @private