这是一个创建于 3138 天前的主题,其中的信息可能已经有所发展或是发生改变。
var audio = document.getElementById("audio");
audio.loop = false;
window. onload = function(){//页面加载完毕后调用
var ass = document.getElementById('audio').duration;//如果当前时常为NaN赋值
if(this.isNaN(ass)){
var ids = '[dance:id]'-2;
//this.self.location='127.0.0.1/ceshi/index.php/dance/play/id/'+ids;
}else{
var ids = '[dance:id]'-1;
};
audio.addEventListener('ended', function () {
this.self.location='127.0.0.1/ceshi/index.php/dance/play/id/'+ids;
}, false);
}
3 条回复 • 2015-02-26 18:28:26 +08:00
 |
|
1
loading 2015-02-26 18:08:32 +08:00
|
 |
|
2
66beta 2015-02-26 18:22:00 +08:00
|
 |
|
3
getcww 2015-02-26 18:28:26 +08:00
谢谢两位楼主~
|