var timeOutId=null;
function addMusic(music_window,id,lyric,address,author,name,lenth){
//alert(music_window.document.readyState);
if(music_window.document.readyState=="complete"){//在这里判断
music_window.addMusic(id,lyric,address,author,name,lenth);
if(timeOutId!=null)
window.clearTimeout(timeOutId);
}else{
timeOutId = window.setTimeout(function(){
addMusic(music_window,id,lyric,address,author,name,lenth)
}
,1000);
}
}
判断子窗体是否加载完成
最新推荐文章于 2021-05-31 04:46:50 发布
1万+

被折叠的 条评论
为什么被折叠?



