const prev = ele.previousSibling;
const next = ele.nextSibling;
// Get the parent nodeconst parent = ele.parentNode;// Filter the children, exclude the elementconst siblings = [].slice.call(parent.children).filter(function (child) {return child !== ele;});