87,995
社区成员
发帖
与我相关
我的任务
分享
function startCatch(){
if(theDiv.childNodes.length == chlidNodeLength){
setTimeout('startCatch()',50);
}
else{
chlidNodeLength = theDiv.childNodes.length;
setTimeout('startCatch()',50);
//有删除或添加元素,接下来干我想干的事
}
}
var chlidNodeLength = theDiv.childNodes.length;
startCatch();
function startCatch(){
if(theDiv.childNodes.length == chlidNodeLength){
setTimeout('startCatch()',50);
}
else{
chlidNodeLength = theDiv.childNodes.length;
//有删除或添加元素,接下来干我想干的事
}
}
var chlidNodeLength = theDiv.childNodes.length;
startCatch();