发布网友
共2个回答
热心网友
var odiv=document.getElementsByTagName('div');
for(var i=0;i<odiv.length;i++){
if(odiv[i]=="二"){
this.style.display=“none”;
}
}
N久没写,应该是这样的吧,仅供参考
热心网友
$('div').each(function(){
var html=$(this).html();
if(html.indexOf('二')==true){
$(this).hide();
}
});