Online to see a lot of solutions, almost the essence is the same, are introduced a sliding JS plugin, add a section of JS code, can be effective, but I tried hammer.js and touchswipe.js are not effective, can not find the reason is what, at present on the Internet to find toucher.js can be achieved, posted to the blog, reserved for backup:
1 <script> 2 $ ( function () { 3 var mytouch = Util.toucher (document.getElementById (' Carousel-index ')); 4 mytouch.on (' Swipeleft ', function (e) { 5 $ ('. Right '). Click (); 6 }). On (' Swiperight ', function (e) { 7 $ ('. Left '). Click (); 8 }); 9 }) 10 </script>
Gets the ID that is the outermost ID of the entire large chart carousel,
$ ('. Right '), $ ('. Left ') for the class name of the right-click arrow, such as Carousel does not need left and right arrows, to add display:none arrows; We can.
Reference Link: http://blog.csdn.net/wmwyyx/article/details/46608893
This article is from the "Small Syria frontend" blog, please be sure to keep this source http://beileixinqing.blog.51cto.com/7540036/1905169
Bootstrap big picture Carousel mobile phone end cannot finger swipe solution