code: public static int getElIndexInSameTags(Element e,Scope scope){
          Elements chs = e.parent().children();
          int index = 1;
          for (Element cur : chs) {
              if (e.tagName().equals(cur.tagName()) && scope.context().contains(cur)) {
                  if (e.equals(cur)) {
                      break;
                  } else {
                      index += 1;
                  }
              }
          }
          return index;
      }
docs: 获取同名元素在同胞中的index
  @param e
  @return