所以,现在你知道该怎么做啦?就是不要使用event.target,改用event.currentTarget
<script>var father=document.getElementById("father")
var div=father.getElementsByTagName("div")[0]
a()
function a(){
var ary=[]
var b=div.nextElementSibling
while (b){
ary.push(b)
b=b.nextElementSibling
}
console.log(ary)
}
</script>