mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
add createElement
This commit is contained in:
1 parent
326a292e27
commit
8c9db3f302
10 files changed
+50
-42
No files matched your search
@@ -83,3 +83,7 @@ export function replaceElement(newChild, oldChild) {
|
||||
oldChild.parentNode.replaceChild(newChild, oldChild);
|
||||
return newChild;
|
||||
}
|
||||
|
||||
export function createElement(tag) {
|
||||
return document.createElement(tag);
|
||||
}
|
||||
Reference in new issue
Block a user