javascribe之document的一些事 if (document.getElementById('addjs') != null) { document.body.removeChild(document.getElementById('addjs')); }本人菜鸟,向大家求教一下这是什么意思? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if (document.getElementById('addjs') != null) {//如果存在该元素document.body.removeChild(document.getElementById('addjs'));//删掉该元素} if (document.getElementById('addjs') != null) {//如果存在id=addjs标签 document.body.removeChild(document.getElementById('addjs'));//从文档体中移除该标签} if (document.getElementById('addjs') != null) {//从你当前页面去找一个ID叫“addjs”的标签,判断是否存在,找到了就不为null,没找到就null document.body.removeChild(document.getElementById('addjs'));//移除该标签 }document.getElementById('addjs')方法是根据ID来查找该标签还有种用名字来查找的document.getElementByName('addjs') 文件上传时的类型转换 事务的问题 学习中遇到了困难 求助 163发不出邮件 完成HelloServlet程序 JSP连接SQL server 2000出错了。 急啊,项目中的图片无法显示,加10分!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 急!100分!如果不用html的frame有什么好的方法xml+xslt或jsp 表示层&&客户端到底用什么技术比较好? 要过年了,程序员都拿到奖金了吗? eclipse 如何发布 Dynamic web project到Tomcat java连接数据库问题
document.body.removeChild(document.getElementById('addjs'));//删掉该元素
}
if (document.getElementById('addjs') != null) {//如果存在id=addjs标签
document.body.removeChild(document.getElementById('addjs'));//从文档体中移除该标签
}
document.body.removeChild(document.getElementById('addjs'));//移除该标签
}
document.getElementById('addjs')方法是根据ID来查找该标签
还有种用名字来查找的document.getElementByName('addjs')