摘要: var id = document.getElementId("id"); if(typeof(id) == "undefined" || id == null) { console.log("节点不存在"); else{ console.log("节点存在"); } 注意:typeof(id) = 阅读全文
posted @ 2020-05-15 22:52 ASKANDANSWERS 阅读(293) 评论(0) 推荐(0) 编辑