这是一个创建于 3413 天前的主题,其中的信息可能已经有所发展或是发生改变。
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
![loading](https://cdn.v2ex.com/avatar/7aee/26c3/2719_normal.png?m=1671849036) |
|
1
loading 2015-02-26 18:08:32 +08:00
|
![66beta](https://cdn.v2ex.com/avatar/593b/67e3/33243_normal.png?m=1700027445) |
|
2
66beta 2015-02-26 18:22:00 +08:00
|
![getcww](https://cdn.v2ex.com/avatar/daa6/32ba/43351_normal.png?m=1403503159) |
|
3
getcww 2015-02-26 18:28:26 +08:00
谢谢两位楼主~
|