function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2018学年科教版高二物理选修3-4文档 下一篇:2018学年教科版高二物理选修3-1文档 '; }