gpt4 book ai didi

jquery事件处理如何使用

转载 作者:行者123 更新时间:2023-12-01 06:49:19 26 4
gpt4 key购买 nike

我正在使用来自 jsmovie 的插件。它有基本用法,如

$('.movie').jsMovie({
images : ['loader_ani4x4.png'],
folder : 'pic/loader/',
height : 40, width: 40,
grid : {height:40, width:40, columns:4, rows:4},
showPreLoader : false,
playOnLoad : true
});

以及诸如此类的事件

 *  play    -   is triggered when the movie starts playing
* pause - is triggered when the movie pauses
* stop - is triggered when the movie stops
* ended - is triggered when a clip played its last frame
* playing - is triggered when the movie enters a frame
* loaded - is triggered when the movie has finished its loading process
* verbose - is triggered when the movie outputs a verbose, the callback has an extra argument like function(e,output){} which contains the text

我如何使用播放事件?

我尝试了这样的方法,但不起作用

 $('#movie').jsMovie.playing(function(v){
console.log();
});

最佳答案

尝试一下:

$('#movie').on('playing',function(){ /* your code */});

关于jquery事件处理如何使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17491140/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com