mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
update docs
This commit is contained in:
1 parent
2a933206dc
commit
4fbb3442e0
10 files changed
+83
-36
No files matched your search
@@ -123,6 +123,11 @@ export function sublings(target) {
|
||||
return Array.from(target.parentElement.children).filter(item => item !== target);
|
||||
}
|
||||
|
||||
export function inverseClass(target, className) {
|
||||
sublings(target).forEach(item => item.classList.remove(className));
|
||||
target.classList.add(className);
|
||||
}
|
||||
|
||||
export function debounce(func, wait, context) {
|
||||
let timeout;
|
||||
function fn() {
|
||||
|
||||
Reference in new issue
Block a user