Skip to content

Commit c493154

Browse files
committed
chore: update
Change-Id: Ib63a179da25c06b9e798e66b5d5ba01a04232bb7
1 parent 82edddc commit c493154

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/en/guide/interaction/event-handling/event-propagation.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ For the client, the example is as follows:
178178

179179
<PlatformTabs queryKey="platform">
180180
<PlatformTabs.Tab platform="ios">
181+
181182
```objective-c
182183
// You can call the sendGlobalEvent function of LynxContext
183184
// The first parameter is the event name monitored by the front end, and the second parameter is the data received by the front end
@@ -192,7 +193,8 @@ For the client, the example is as follows:
192193
```java
193194
// You can call the sendGlobalEvent function of LynxContext
194195
// The first parameter is the event name monitored by the front end, and the second parameter is the data received by the front end
195-
LynxContext.sendGlobalEvent("eventName", args); // Or call the sendGlobalEvent function of LynxView
196+
LynxContext.sendGlobalEvent("eventName", args);
197+
// Or call the sendGlobalEvent function of LynxView
196198
LynxView.sendGlobalEvent("eventName", args);
197199
```
198200

docs/zh/guide/interaction/event-handling/event-propagation.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,21 @@ import { PlatformTabs, Go } from '@lynx';
194194
```java
195195
// 可以调用 LynxContext 的 sendGlobalEvent 函数
196196
// 第一个参数为前端监听的事件名称,第二个参数为前端接收到的数据
197-
LynxContext.sendGlobalEvent("eventName", args); // 或者调用 LynxView 的sendGlobalEvent 函数
197+
LynxContext.sendGlobalEvent("eventName", args);
198+
// 或者调用 LynxView 的sendGlobalEvent 函数
198199
LynxView.sendGlobalEvent("eventName", args);
199200
```
200201

201202
</PlatformTabs.Tab>
202203

203204
<PlatformTabs.Tab platform="harmony">
205+
204206
```js
205207
// 可以调用 LynxContext 的 sendGlobalEvent 函数
206208
// 第一个参数为前端监听的事件名称,第二个参数为前端接收到的数据
207-
LynxContext.sendGlobalEvent("eventName", args);
209+
LynxContext.sendGlobalEvent('eventName', args);
208210
```
211+
209212
</PlatformTabs.Tab>
210213
</PlatformTabs>
211214

0 commit comments

Comments
 (0)