我有左滑动的 div
$(".iframe-content").swipeleft(function(e) {
alert ("test 1");
});
<div class="iframe-content">
<div class="noswipe">no swipe</div>
<div class="noswipe">no swipe</div>
<div class="noswipe">no swipe</div>
<div class="noswipe">no swipe</div>
<div id="another-swipe">swipe here</div>
<div class="noswipe">no swipe</div>
<div class="noswipe">no swipe</div><div class="noswipe">no swipe</div>
</div>
现在我的问题是:
在iframe-content上滑动工作正常,但我再次滑动another-swipe
$(".another-swipe").swipeleft(function(e) {
alert("test2")
});
但它没有发出先前的警报alert("test2");
......