Skip to content

Instantly share code, notes, and snippets.

@neilwong2012
Created April 25, 2018 03:36
Show Gist options
  • Save neilwong2012/9b5d62633ee9b5ebc98821d310d1ccf6 to your computer and use it in GitHub Desktop.
Save neilwong2012/9b5d62633ee9b5ebc98821d310d1ccf6 to your computer and use it in GitHub Desktop.
jquery 自定义队列
使用自定义队列实现延时器。
$(e.currentTarget).delay(100, 'queuename').queue('swiper', function() {
do something
}).dequeue('queuename');
$(e.currentTarget).clearQueue('queuename');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment