function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:【语文】强化薄弱环节六步走 下一篇:【英语】进行做题后的反思 '; }