mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
8 lines
122 B
TypeScript
8 lines
122 B
TypeScript
export function removeNode(el: Node) {
|
|
const parent = el.parentNode;
|
|
|
|
if (parent) {
|
|
parent.removeChild(el);
|
|
}
|
|
}
|