bug fixed
This commit is contained in:
10
js/main.js
10
js/main.js
@@ -124,8 +124,14 @@ function playnext(){
|
||||
|
||||
// 检测是否播放完毕
|
||||
function checkplay(){
|
||||
if(document.getElementById("Player").ended){
|
||||
playnext();
|
||||
// 为了防止播放列表结束以后一直调用playnext产生过多的alart,所以需要检测播放列表是否为空
|
||||
if(!list.isEmpty()){
|
||||
if(document.getElementById("Player").ended){
|
||||
// 播放完毕后自动播放下一首
|
||||
playnext();
|
||||
}
|
||||
}else{
|
||||
//clearInterval(checkplay);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user