杂记

//获取span内的值
if(document.getElementById("zhongleiDivs").firstChild.firstChild.nodeName=="SPAN"){ var span=document.getElementById("zhongleiDivs").outerText; if("外币"==span){ document.getElementById("checkbz").style.display = "block"; }else{ document.getElementById("checkbz").style.display = "none"; } }

 

你可能感兴趣的:(杂记)