function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2020浙江高考数学二轮练习 下一篇:2020浙江高考语文二轮练习 '; }