求助:jquery mobile 手指滑动swipe动作 的滑动距离设置 jquery mobileswipe 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你搞错名字了吧。你那是哪个版本的jquery mobile啊,我看了下源码,里面设置水平方法滑动距离的不是你说的这个名字啊$.event.special.swipe.horizontalDistanceThreshold好像是这个啊。版本:jQuery Mobile 1.4.2你自己在源码里面,直接搜索这个:horizontalDistanceThreshold,看有没有。没有就找$.event.special.swipe这个对象在哪里。 抱歉,您说的对,是我写错了,不过代码里是对的,是您写的这行代码,在页面里我是这么写的<script src="js/jquery.js"></script><script src="js/jquery.mobile-1.4.2.min.js"></script><script> $(document).bind('mobileinit', function(){ $.event.special.swipe.horizontalDistanceThreshold(40); })alert($.event.special.swipe.horizontalDistanceThreshold)</script><script>$(function() { $("#id").swipeself()}); 这个是一个属性,不是一个方法,直接赋值就好了。$.event.special.swipe.horizontalDistanceThreshold = 40; 谁知道如何获取文件名前面的文字啊. 这里如何修改为默认选择第二条,求助 有无能实现这种效果的菜单? 显示层不能准确定位 已知id如何获得classname? 誰能幫我把這個用htm寫的表格改為svg?100的高分請高人! asp.net直接调用jquery的highslide命令 请问如何使超链接无效 怎样用js实现一组checkbox的选中问题? 新人求助~~!!! extjs4 form中的边框 json 跨域获取
好像是这个啊。版本:jQuery Mobile 1.4.2你自己在源码里面,直接搜索这个:horizontalDistanceThreshold,看有没有。
没有就找$.event.special.swipe这个对象在哪里。
在页面里我是这么写的<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.4.2.min.js"></script>
<script>
$(document).bind('mobileinit', function(){
$.event.special.swipe.horizontalDistanceThreshold(40);
})
alert($.event.special.swipe.horizontalDistanceThreshold)
</script>
<script>
$(function() {
$("#id").swipeself()
});