代码:
var div = document.getElementById("ele");
var nextDiv = div.nextSibling.nextSibling;
或
var nextDiv = div.nextElementSibling;
var div = document.getElementById("ele");
var nextDiv = div.nextSibling.nextSibling;
或
var nextDiv = div.nextElementSibling;