mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
优化 playlist
This commit is contained in:
1 parent
328d580fb7
commit
2385128abb
2 files changed
+5
-7
No files matched your search
@@ -99,9 +99,9 @@ export function append(parent, child) {
|
||||
if (child instanceof Element) {
|
||||
parent.appendChild(child);
|
||||
} else {
|
||||
parent.insertAdjacentHTML('beforeend', child);
|
||||
parent.insertAdjacentHTML('beforeend', String(child));
|
||||
}
|
||||
return parent.lastElementChild;
|
||||
return parent.lastElementChild || parent.lastChild;
|
||||
}
|
||||
|
||||
export function remove(child) {
|
||||
|
||||
Reference in new issue
Block a user