docs: function addRows(rows, index) {
  
      if (!(this.$ele.data('gridComp') == this)) return;
      if (this.options.showTree || this.options.groupField) {
          // 树表待优化
          var l = rows.length;
          for (var i = 0; i < l; i++) {
              this.addOneRow(rows[i], l);
          }
          return;
      }
      if (typeof this.options.filterDataFun == 'function') {
          rows = this.options.filterDataFun.call(this, rows);
      }
  
      this.editClose();
      var htmlStr = '',
          htmlStrmultiSelect = '',
          htmlStrNumCol = '',
          htmlStrFixed = '',
          oThis = this,
          l = this.dataSourceObj.rows.length,
          endFlag = false;
      var newRows = [];
      $.each(rows, function () {
          newRows.push(oThis.getGridRow(this));
      });
      rows = newRows;
      if (index != 0) {
          if (index && index > 0) {
              if (l < index) index = l;
          } else {
              index = 0;
          }
      }
      if (l == index) {
          endFlag = true;
      }
      var rowObjArr = new Array();
      $.each(rows, function (i) {
          var rowObj = {};
          rowObj.value = this;
          rowObj.valueIndex = index + i;
          rowObjArr.push(rowObj);
          oThis.dataSourceObj.rows.splice(index + i, 0, rowObj);
          oThis.updateEditRowIndex('+', index + i);
      });
  
      if (this.dataSourceObj.options.values) {} else {
          this.dataSourceObj.options.values = new Array();
      }
      $.each(rows, function (i) {
          oThis.dataSourceObj.options.values.splice(index + i, 0, this);
      });
  
      // 如果是在中间插入需要将后续的valueIndex + 1；
      if (this.dataSourceObj.rows.length > index + rows.length) {
          $.each(this.dataSourceObj.rows, function (i) {
              if (i > index + rows.length - 1) {
                  this.valueIndex = this.valueIndex + rows.length;
              }
          });
      }
      if (this.showType == 'grid' && $('#' + this.options.id + '_content_div tbody')[0]) {
          //只有grid展示的时候才处理div，针对隐藏情况下还要添加数据 //lyk--需要完善隐藏之后再显示同事添加数据操作
          $.each(rowObjArr, function (i, row) {
              htmlStr += oThis.createContentOneRow(this);
              htmlStrFixed += oThis.createContentOneRowFixed(this);
              if (oThis.options.multiSelect) {
                  htmlStrmultiSelect += oThis.createContentLeftMultiSelectRow(this);
              }
              if (oThis.options.showNumCol) {
                  htmlStrNumCol += oThis.createContentLeftNumColRow(l + i, row.value);
              }
          });
          try {
              if (endFlag) {
                  $('#' + this.options.id + '_content_div tbody')[0].insertAdjacentHTML('beforeEnd', htmlStr);
              } else {
                  if ($('#' + this.options.id + '_content_div').find('tbody').find('tr[role="row"]')[index]) $('#' + this.options.id + '_content_div').find('tbody').find('tr[role="row"]')[index].insertAdjacentHTML('beforeBegin', htmlStr);else if ($('#' + this.options.id + '_content_div tbody')[0]) $('#' + this.options.id + '_content_div tbody')[0].insertAdjacentHTML('afterBegin', htmlStr);
              }
              if (endFlag) {
                  $('#' + this.options.id + '_content_fixed_div tbody')[0].insertAdjacentHTML('beforeEnd', htmlStrFixed);
              } else {
                  if ($('#' + this.options.id + '_content_fixed_div').find('tbody').find('tr[role="row"]')[index]) $('#' + this.options.id + '_content_fixed_div').find('tbody').find('tr[role="row"]')[index].insertAdjacentHTML('beforeBegin', htmlStrFixed);else if ($('#' + this.options.id + '_content_fixed_div tbody')[0]) $('#' + this.options.id + '_content_fixed_div tbody')[0].insertAdjacentHTML('afterBegin', htmlStrFixed);
              }
          } catch (e) {
              //IE情况下
              var table = $('#' + this.options.id + '_content_div table')[0];
              var fixedTable = $('#' + this.options.id + '_content_fixed_div table')[0];
              if (table && fixedTable) {
                  $.each(rowObjArr, function (i) {
                      oThis.createContentOneRowForIE(table, index + i, this);
                      oThis.createContentOneRowForIE(fixedTable, index + i, this, 'fixed');
                  });
              }
          }
          if (this.options.multiSelect) {
              if (endFlag) {
                  $('#' + this.options.id + '_content_multiSelect')[0].insertAdjacentHTML('beforeEnd', htmlStrmultiSelect);
              } else {
                  var _content_multiSelect = $('#' + this.options.id + '_content_multiSelect').find('div')[index];
                  if (_content_multiSelect) _content_multiSelect.insertAdjacentHTML('beforeBegin', htmlStrmultiSelect);else $('#' + this.options.id + '_content_multiSelect')[0].insertAdjacentHTML('afterBegin', htmlStrmultiSelect);
              }
              if (this.options.sumRowFirst && !this.options.sumRowFixed && this.dataSourceObj.rows.length > 0) $('#' + this.options.id + '_content_multiSelect').addClass('u-grid-content-left-sum-first');
          }
          if (this.options.showNumCol) {
              if (endFlag) {
                  $('#' + this.options.id + '_content_numCol')[0].insertAdjacentHTML('beforeEnd', htmlStrNumCol);
              } else {
                  var _content_multiSelect = $('#' + this.options.id + '_content_numCol').find('div')[index];
                  if (_content_multiSelect) _content_multiSelect.insertAdjacentHTML('beforeBegin', htmlStrNumCol);else $('#' + this.options.id + '_content_numCol')[0].insertAdjacentHTML('afterBegin', htmlStrNumCol);
              }
              if (this.options.sumRowFirst && !this.options.sumRowFixed && this.dataSourceObj.rows.length > 0) $('#' + this.options.id + '_content_numCol').addClass('u-grid-content-left-sum-first');
              this.resetNumCol();
              this.updateNumColLastRowFlag();
          }
          this.repairSumRow();
          if (this.dataSourceObj.rows.length > 0) {
              $('#' + this.options.id + '_grid .u-grid-noScroll-left').css('display', "block");
          } else {
              $('#' + this.options.id + '_grid .u-grid-noScroll-left').css('display', "none");
          }
          this.noRowsShowFun();
          var obj = {};
          obj.begin = index;
          obj.length = rows.length;
          this.renderTypeFun(obj);
      }
  
      this.updateLastRowFlag();
      this.isCheckedHeaderRow();
      this.resetLeftHeight();
  }