求助: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; javascript上传 关于onFocus和onBlur事件 我的程序有点问题,谁帮我找找啊!!! 点击button 出现下拉菜单 跨框架函数调用问题 elements(city).options[0]=new Option('区县名称','')怎么不能执行? 请问:用insertRow动态生成的table row,如何应用样式? 关于JAVA虚拟机!!求助,遇到问题了。 怎样输入出原有的数据库内格式! 根据文本框内容禁用下拉列表 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()
});