提交 2bc5065a 编写于 作者: hbcui1984's avatar hbcui1984 提交者: Gitee

修正事件描述符

上级 acced760
...@@ -1068,7 +1068,7 @@ v-for 指令可以实现基于一个数组来渲染一个列表。 ...@@ -1068,7 +1068,7 @@ v-for 指令可以实现基于一个数组来渲染一个列表。
warn(message, event) { warn(message, event) {
// 现在我们可以访问原生事件对象 // 现在我们可以访问原生事件对象
if (event) { if (event) {
event.preventDefault() //可访问 event.target等原生事件对象
} }
uni.showToast({ uni.showToast({
title: message title: message
...@@ -1109,7 +1109,7 @@ v-for 指令可以实现基于一个数组来渲染一个列表。 ...@@ -1109,7 +1109,7 @@ v-for 指令可以实现基于一个数组来渲染一个列表。
**注意** **注意**
- 为兼容各端,事件需使用 **@** 的方式绑定,请勿使用小程序端的 `bind``catch` 进行事件绑定 - 为兼容各端,事件需使用 **@** 的方式绑定,请勿使用小程序端的 `bind``catch` 进行事件绑定;也不能在 JS 中使用`event.preventDefault()``event.stopPropagation()`方法;
- 若需要禁止蒙版下的页面滚动,可使用 `@touchmove.stop.prevent="moveHandle"``moveHandle` 可以用来处理 `touchmove` 的事件,也可以是一个空函数。 - 若需要禁止蒙版下的页面滚动,可使用 `@touchmove.stop.prevent="moveHandle"``moveHandle` 可以用来处理 `touchmove` 的事件,也可以是一个空函数。
```html ```html
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册