我使用 jQuery Mobile 的 swiperight 和 swipeleft 事件。它们在开发时在我的台式电脑和 iphone 上工作得很好,但是当我在我的 windows 手机上测试它时,这两个事件都不会触发。
看起来很简单:
<div class="swiper">Content</div>
和脚本
$(".swiper").swiperight(function(event){
alert('swiperight');
});
$(".swiper").swipeleft(function(event){
alert('swipeleft');
});
同样的问题 $(".swiper").live('swipeleft swiperight')
有人对此有解决方案吗?根据http://jquerymobile.com/blog/2012/08/01/announcing-jquery-mobile-1-2-0-alpha/他们对 Windows Phone 有 A 级支持。