首先一樣先去下載外掛,然後引入:
<script type="text/javascript" src="jquery.wipetouch.js"></script>
然後把你要滑動後的事件綁入就可以了。
- $(document).wipetouch({
- wipeLeft: function(result) { // wiped left },
- wipeRight function(result) { // wiped right },
- wipeUp: function(result) { // wiped up },
- wipeDown: function(result) { // wiped down }
- });
0 意見:
張貼留言