var divs = $("#date_text_${dateCheckId}").children("div");
for(x in divs){
if(divs[x].text() == div_val.text()){
div_flag=true;
break;
}
}
if(!div_flag){
$("#date_text_${dateCheckId}").append(div_val);
}
}
请问这段代码哪里错了?显示divs[x].text() is not function? 谢谢
...全文
784打赏收藏
请问这句代码哪里错了?
var divs = $("#date_text_${dateCheckId}").children("div"); for(x in divs){ if(divs[x].text() == div_val.text()){ div_flag=true; break; } } if(!div_flag){ $("#date_text_${dateCheckId}").append(div_val); } } 请问这段代码哪里错了?显示divs[x].text() is not function