84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
在做移动端 引用了 swiper.js 跟Iscroll.js但是做完之后发现我的a标签点击跳转无效。然后我又自作聪明的用了个js来控制
$(document).on('tap','a',function(){ window.location.href=$(this).attr('href'); })
然后这几导致 滑动轮播图片的时候,超链接似乎也被触发了跳转!如何解决这个问题?
Iscroll.js中设置click或者tap为true, 因为重新滚动条禁止了所有的默认事件。
var myScroll = new IScroll('#wrapper', { click: true, tap: true, //或者 });
Iscroll.js中设置click或者tap为true, 因为重新滚动条禁止了所有的默认事件。