Touch.js手勢識別與事件庫
Touch.js是移動設備上的手勢識別與事件庫, 由百度云Clouda團隊維護,也是在百度內部廣泛使用的開發(fā)工具.
Touch.js的代碼已托管于github并開源,希望能幫助國內更多的開發(fā)者學習和開發(fā)出優(yōu)秀的App產品.
Touch.js手勢庫專為移動設備設計, 請在Webkit內核瀏覽器中使用.
極速CDN
<script src="http://code.baidu.com/touch-0.2.14.min.js"></script>
Examples
//swipe example
touch.on('.target', 'swipeleft swiperight', function(ev){
console.log("you have done", ev.type);
});
See more live examples
評論
圖片
表情
