function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2020版高考历史人民版一轮复习课件+测试 下一篇:2019高考物理新调研课件+精练 '; }