function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2021高考历史调研大一轮复习人民版 下一篇:2021版新高考选考地理(湘教版)一轮复习 '; }