mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 01:26:16 -08:00
添加函数工具sublings
This commit is contained in:
1 parent
1fe3ffdeae
commit
05edae2d84
4 files changed
+15
-14
No files matched your search
@@ -111,3 +111,7 @@ export function tooltip(target, msg, pos = 'up') {
|
||||
export function sleep(ms = 0) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
export function sublings(target) {
|
||||
return Array.from(target.parentElement.children).filter(item => item !== target);
|
||||
}
|
||||
Reference in new issue
Block a user