From 9871408e40fc591d7130bc2646ef2af72865bcfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Thu, 12 Oct 2023 03:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/music.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/music.js b/public/music.js index ce5eed4..fa48643 100644 --- a/public/music.js +++ b/public/music.js @@ -3,8 +3,7 @@ import { Span, Button, List, ListItem, UploadMusic } from './weigets.js' export default class MusicList { constructor({ list = [], EventListeners = {}, onplay, onstop, onadd, onremove, onlike, onunlike, onban, onload }) { this.event = { onplay, onstop, onadd, onremove, onlike, onunlike, onban, onload } - this.ul = List({}) - this.ul.classList.add('music-list') + this.ul = List({ classList: ['music-list'] }) this.EventListeners = EventListeners this.list = [] list.forEach(item => this.add(item)) // 列表逐一添加