var hits =6480; if( hits == 0) { document.getElementById("Hits").innerHTML= ""; if(document.getElementById("showHits")!=null) { document.getElementById("showHits").innerHTML= ""; } } else { document.getElementById("Hits").innerHTML= " 人气: " + hits + " 次"; if(document.getElementById("showHits")!=null) { document.getElementById("showHits").innerHTML= "本篇文章被 " + hits + " 人阅读,"; } }