06 2023 档案
摘要:`addEventListener(type, func, opts)` - `type`就是监听的类型,如`scroll`、`touchstart`等; - `func`执行的方法; - `opts`可以是`Boolean`和`Object`; `Boolean`表示什么阶段执行,false:冒泡
阅读全文
摘要:- 使用已有的轮子简单实现H5左右滑动手势 1. 安装`vue2-touch-events` `npm install vue2-touch-events` 2. 在`main.js`中引入 ```js // main.js import Vue2TouchEvents from 'vue2-tou
阅读全文