求助: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; parent.addLinkPath 什么属性? 在w3c 文档中 什么位置? JS如何监控用户是否使用了 鼠标右键+粘贴动作 关于FSO的读写问题,请高手指教 单选框问题(我点按钮一让页面上所有单选按钮值为1的选中,点按钮二让所有单选按钮为2的选中 关于层与层之间的切换问题求助,DIV+JS 讨论一下,javascript有办法在HTTP应答中设置SESSIONID吗? 根据内容让滚动条滚到适当位置 我想弹出一个窗口,但不显示该窗口,只执行里面的PHP代码 form元素的type属性什么意思? ExtJs4 扩展Model类问题 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()
});