From cda7c1980995fe9b5f54299ccd2a7b9fb815b2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=BE=81?= <5522733+appdevservice@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 06:36:05 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/api/window/communication.md.=20?= =?UTF-8?q?=E7=BB=8F=E8=BF=87=E5=AE=9E=E9=AA=8C=E5=8F=91=E7=8E=B0=20uni.$o?= =?UTF-8?q?n=20=E5=BF=85=E9=A1=BB=E5=9C=A8=E5=AE=9A=E4=B9=89=E4=BB=A5?= =?UTF-8?q?=E5=90=8E=E6=89=8D=E8=83=BD=E6=8E=A5=E6=94=B6=E5=88=B0=20uni.$e?= =?UTF-8?q?mit=20=E4=BC=A0=E9=80=92=E7=9A=84=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E8=80=8C=E5=AE=98=E7=BD=91=E5=B9=B6=E6=B2=A1=E6=9C=89=E6=8F=90?= =?UTF-8?q?=E5=8F=8A=E5=88=B0=E4=B8=A4=E8=80=85=E7=9A=84=E5=85=88=E5=90=8E?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98=E3=80=82=E5=88=9D=E5=AD=A6?= =?UTF-8?q?=E8=80=85=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=9B=A0=E4=B8=BA=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E6=90=9E=E9=94=99=E8=80=8C=E8=BE=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/window/communication.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/window/communication.md b/docs/api/window/communication.md index f0c4bf336..0758f8101 100644 --- a/docs/api/window/communication.md +++ b/docs/api/window/communication.md @@ -131,3 +131,4 @@ **注意事项** - uni.$emit、 uni.$on 、 uni.$once 、uni.$off 触发的事件都是 App 全局级别的,跨任意组件,页面,nvue,vue 等 - 使用时,注意及时销毁事件监听,比如,页面 onLoad 里边 uni.$on 注册监听,onUnload 里边 uni.$off 移除,或者一次性的事件,直接使用 uni.$once 监听 +- 注意 uni.$on 定义完成后才能接收到 uni.$emit 传递的数据 -- GitLab