1
我有这个简单的仄刷卡代码如何触发仄刷卡事件与设备的交互
$(function(){
$(document).on('swipeRight',function(e){
alert("right");
});
$(document).on('swipeLeft', function(e){
alert("left");
});
});
我似乎无法从iOSSimulator或在实际设备上触发此。 但是我可以从控制台调用$(document).trigger('swipeRight')
并触发事件。我不使用的Zepto v1.0-1-ga3cab6c
搭载iOS 7