摘要: 🍋 children属性返回元素中也是元素的子节点(即,不包含空白节点)。 🍋 contains()方法检测一个节点是否为另一个节点的后代,返回布尔值。 alert(document.documentElement.contains(document.body)); //true 🍋 pre标 阅读全文
posted @ 2017-12-26 17:51 LLLLily 阅读(131) 评论(0) 推荐(0) 编辑