function getSiblingElements(node, select) {
  if (isWindow(node)) node = document.documentElement;
  var targets = []
  var temp = []
  if (!select) return
  if (typeof select == 'string') {
    temp = select.split(' ')
  }
  if (isArray(select)) {
    temp = select
  }
  temp.forEach(function (item) {
    var char0 = item.charAt(0)
    if (char0 == '#') {
      targets = targets.concat(document.getElementById(item.substring(1)))
    } else
    if (char0 == '.') {
      targets = targets.concat(toArray(getElementsByClassName(node, item.substring(1))))
    } else {
      targets = targets.concat(toArray(node.getElementsByTagName(item)))
    }
  })
  if (targets.length) return targets
}
function getSiblingElements(node, select) {
  if (isWindow(node)) node = document.documentElement;
  var targets = []
  var temp = []
  if (!select) return
  if (typeof select == 'string') {
    temp = select.split(' ')
  }
  if (isArray(select)) {
    temp = select
  }
  temp.forEach(function (item) {
    var char0 = item.charAt(0)
    if (char0 == '#') {
      targets = targets.concat(document.getElementById(item.substring(1)))
    } else
    if (char0 == '.') {
      targets = targets.concat(toArray(getElementsByClassName(node, item.substring(1))))
    } else {
      targets = targets.concat(toArray(node.getElementsByTagName(item)))
    }
  })
  if (targets.length) return targets
}
function getSiblingElements ( node , select ) { if ( isWindow ( node ) ) node = document . documentElement ; var targets = [ ] var temp = [ ] if ( ! select ) return if ( typeof select == 'string' ) { temp = select . split ( ' ' ) } if ( isArray ( select ) ) { temp = select } temp . forEach ( function ( item ) { var char0 = item . charAt ( 0 ) if ( char0 == '#' ) { targets = targets . concat ( document . getElementById ( item . substring ( 1 ) ) ) } else if ( char0 == '.' ) { targets = targets . concat ( toArray ( getElementsByClassName ( node , item . substring ( 1 ) ) ) ) } else { targets = targets . concat ( toArray ( node . getElementsByTagName ( item ) ) ) } } ) if ( targets . length ) return targets }
/*获取互不为子的元素集合
@node {Object} dom对象
@select {String} 选择器
Sample: getSiblingElements(doument, '.aaa #bbb img div')
/ * 获取互不为子的元素集合