Skip to content

Commit e83df51

Browse files
author
duwen
committed
update doc
1 parent faa1777 commit e83df51

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dsbridge/npm/dist/dsbridge.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dsbridge/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dsbridge",
3-
"version": "3.1.3",
3+
"version": "3.1.4",
44
"main": "index.js",
55
"typings": "./index.d.ts",
66
"author": {

readme-chs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ DSBridge v3.0 是一个里程碑版本,和v2.0相比,有许多变化,需
152152

153153
## Java API 签名
154154

155-
为了兼容IOS,我们约定 Java API 签名如下:
155+
为了兼容IOS,我们约定 Java API 签名,**注意,如果API签名不合法,则不会被调用**签名如下:
156156

157157
1. 同步API.
158158

159159
**` public any handler(Object msg) `**
160160

161-
参数必须是 `Object` 类型,但返回值类型没有限制,可以是任意类型。
161+
参数必须是 `Object` 类型,**并且必须申明**(如果不需要参数,申明后不适用即可)。返回值类型没有限制,可以是任意类型。
162162

163163
2. 异步 API.
164164

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ In order to be compatible with IOS , we make the following convention on Java A
148148

149149
**` public any handler(Object msg) `**
150150

151-
The argument type must be Object, and the type of return value is not limited.
151+
The argument type must be Object and must declare(although it not need),and the type of return value is not limited.
152152

153153
2. For asynchronous API.
154154

0 commit comments

Comments
 (0)