如何模拟移动端触摸事件

Nov 20, 20183 min read

This post was last modified 1968 days ago, and some of the content may be outdated.

在 pc 端模拟移动端 touch 事件,代码来自 Vant

JS

直接引入该文件,pc 端就可以响应移动端的 touchstarttouchmovetouchend 事件了 ✨。

HITS

LAST UPDATED

Nov 20, 2018
Made withbyXiaojun