老师这段代码有问题 报错pathes.reduce is not a function
const renderListHTML = (pathes) => {
const musicList = $('musicList')
const musicItemsHTML = pathes.reduce((html, music) =>
html += `<li class="list-group-item">${path.basename(music)}</li>`
)
musicList.innerHTML = `<ul class="list-group">${musicItemsHTML}</ul>`
}