慕圣4526135
2017-07-24 01:53
function get_nextSibling(n){
var x=n.nextSibling;
while (x && x.nodeType!=1){
x=x.nextSibling;
}
return x;
}为啥不是这样判断:while(x != null && x.nodeType != 1) ??这点没看明白
函数中的n是什么意思啊
x!=null,x!=0,意思不一样;
看起来是等价的呀
JavaScript进阶篇
469071 学习 · 22582 问题
相似问题