You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function updateLyric(lyric) {
var index = window.ap.list.index;
window.ap.lrc.parsed[index] = window.ap.lrc.parse(lyric);
var html = '';
for (var idx in window.ap.lrc.parsed[index]) {
var value = window.ap.lrc.parsed[index][idx];
if (idx == 0) {
html += '<p class="aplayer-lrc-current">' + value[1] + '</p>';
} else {
html += '<p>' + value[1] + '</p>';
}
}
window.ap.lrc.container.innerHTML = html;
window.ap.lrc.update(0);
window.ap.lrc.current = window.ap.lrc.parsed[index];
}
jsbxyyx
changed the title
动态更新歌词
dynamic update lyric. 动态更新歌词
Feb 4, 2024
function updateLyric(lyric) {
var index = window.ap.list.index;
window.ap.lrc.parsed[index] = window.ap.lrc.parse(lyric);
var html = '';
for (var idx in window.ap.lrc.parsed[index]) {
var value = window.ap.lrc.parsed[index][idx];
if (idx == 0) {
html += '<p class="aplayer-lrc-current">' + value[1] + '</p>';
} else {
html += '<p>' + value[1] + '</p>';
}
}
window.ap.lrc.container.innerHTML = html;
window.ap.lrc.update(0);
window.ap.lrc.current = window.ap.lrc.parsed[index];
}
中文用户请注意:请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。
If you want to report a bug, please provide the following information:
The text was updated successfully, but these errors were encountered: