function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2022年高考作文——全国新高考Ⅰ卷 下一篇:2022年高考作文——北京卷 '; }