0

如前所述,我不知道如何做 JQuery,这可能吗?

查询:

<script>

$('#player').on('timeupdate', function() {
    $('#seekbar').attr("value", this.currentTime / this.duration);
});?

</script>
4

1 回答 1

2
document.getElementById('player').addEventListener('timeupdate', function() {
    document.getElementById('seekbar').value = this.currentTime / this.duration;
}, false);
于 2012-09-07T09:43:40.807 回答