Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正说明 #3139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion versions/3.8/en/advanced-topics/js-java-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ When using these interfaces, please note the following:

- Since this feature is still in the experimental stage, it only supports the transmission of `string` data. If you need to transmit objects with multiple parameters, consider converting them to `Json` format for transmission and parse them before using.
- `onNative` Only one function is recorded at a time for `onNative`, and setting the property again will override the previously set `onNative` method.
- The `sendToScript` method is a one-way communication and does not have return value. It does not inform JavaScript of the success or failure of the operation. Developers need to handle the operation status themselves.
- The `sendToNative` method is a one-way communication and does not have return value. It does not inform JavaScript of the success or failure of the operation. Developers need to handle the operation status themselves.

### Java API

Expand Down
2 changes: 1 addition & 1 deletion versions/3.8/zh/advanced-topics/js-java-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export namespace bridge{

- 由于现在这个功能还在实验阶段,所以只支持 `string` 的传输,如果需要传输包含多种参数的对象,请考虑将其转化为 `Json` 形式进行传输,并在不同层级解析。
- `onNative` 同一时间只会记录一个函数,当再次 `set` 该属性时会覆盖原先的 `onNative` 方法。
- `sendToScript` 方法是单向通信,不会关心下层的返回情况,也不会告知 `JavaScript` 操作成功或者失败。开发者需要自行处理操作情况。
- `sendToNative` 方法是单向通信,不会关心下层的返回情况,也不会告知 `JavaScript` 操作成功或者失败。开发者需要自行处理操作情况。

### Java 接口介绍

Expand Down