jquery on绑定事件叠加解决方法详解编程语言

jquery on绑定事件叠加解决方法

代码如下


$('.maoqiu').each(function () {
var is_bind = $(this).attr('is_bind');
if (is_bind != 1) {
$(this).attr('is_bind', 1);
$(this).on('touchend', function () {

var that = $(this);
that.addClass('fadeOutRight animated');

mcount++;

setTimeout(function () {
that.remove();
$('.p3_wz2').text(mcount);

}, 500)

})
}

});

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/18837.html

(0)
上一篇 2021年7月19日 21:29
下一篇 2021年7月19日 21:29

相关推荐

发表回复

登录后才能评论