vue在移動端點擊,滑動,長按的事件判斷

思路:javascript 1)調用js的touch的API接口分別監聽touchstart,touchmove,touchend事件java 2)使用計時器能夠設定時間用於區分長按和點擊this <template> <div class="about"> <p @touchstart="start" @touchmove="move" @touchend="end">
相關文章
相關標籤/搜索