jquery mobile – 滑动停止function
当我停下来滑动Jquery Mobile Slide时,我会运行一个函数。
我有这张幻灯片:
而这个Javascript:
$(function() { $( "#slider2" ).bind( "stop", function(event, ui) { alert("Stop"); }); });
但它不起作用!
当我释放鼠标(手指)时如何运行function?
正确的方法如下:
$("#slider2").on( 'slidestop', function(event) { // Code goes here } );