百度Touch.js

<script type="text/javascript">
	touch.on('body', 'swipeleft swiperight', function(ev){
    console.log("you have done", ev.type);
});
</script>

  下载:https://www.awesomes.cn/repo/Clouda-team/touchjs   

  api:http://www.dowebok.com/93.html

原文地址:https://www.cnblogs.com/ghfjj/p/6687236.html