如何模拟移动端触摸事件

最后更新于 November 20, 20181 min read

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

js

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


Built with Next.js • Deployed on Vercel
©2022 xiaojun