This commit is contained in:
thofx
2023-09-19 22:11:58 +08:00
parent 2e987701a8
commit bb79aaed8b
8 changed files with 136 additions and 116 deletions
+6
View File
@@ -0,0 +1,6 @@
export function removeEl(selector: string) {
if (selector) {
const el = document.querySelector(selector)
el?.parentNode?.removeChild(el)
}
}
+1
View File
@@ -0,0 +1 @@
export * from './dom'