(el)
| 8021 | |
| 8022 | //删除真实的dom 参数el 是dom |
| 8023 | function removeNode(el) { |
| 8024 | // function parentNode(node) { |
| 8025 | // return node.parentNode |
| 8026 | // } |
| 8027 | //获取父亲dom |
| 8028 | var parent = nodeOps.parentNode(el); |
| 8029 | // element may have already been removed due to v-html / v-text |
| 8030 | // 元素可能已经由于v-html / v-text而被删除 |
| 8031 | //判断父亲dom是否存在 如果存在则 |
| 8032 | // function removeChild(node, child) { |
| 8033 | // node.removeChild(child); |
| 8034 | // } |
| 8035 | //删除子节点 |
| 8036 | if (isDef(parent)) { |
| 8037 | nodeOps.removeChild(parent, el); |
| 8038 | } |
| 8039 | } |
| 8040 | |
| 8041 | // 检查dom 节点的tag标签 类型 是否是VPre 标签 或者是判断是否是浏览器自带原有的标签 |
| 8042 | function isUnknownElement$$1( |
no test coverage detected