mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00: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);
|
|
}
|
|
}
|