如何使用功能在声音管理器中返回歌曲持续时间?
function item_duration(){
var song_item = soundManager.createSound({
id:'etc',
url:'etc',
onload: function() {
if(this.readyState == 'loaded' ||
this.readyState == 'complete' ||
this.readyState == 3){
return = this.duration;
}
}
});
song_item.load();
}
这是我的尝试,但它不起作用