Showing
1 changed file
with
6 additions
and
3 deletions
@@ -12,10 +12,13 @@ var params = { "action":"action", "arguments":{...} }; | @@ -12,10 +12,13 @@ var params = { "action":"action", "arguments":{...} }; | ||
12 | yohoInterface.triggerEvent(onSuccess, onFail, params); | 12 | yohoInterface.triggerEvent(onSuccess, onFail, params); |
13 | ``` | 13 | ``` |
14 | 14 | ||
15 | -* action | ||
16 | - 行为参数,例如`go.login`表示跳转至登陆页面 | ||
17 | - | 15 | +* yohoInterface |
16 | + 全局js对象,用于调用native代码,是所有与native通信的载体。 | ||
17 | +* triggerEvent | ||
18 | + 通过此方法,发起native通信请求。所有的native通信都由此方法 | ||
18 | 19 | ||
20 | + action :行为参数,代表此次调用的行为。例如`go.login`表示跳转至登陆页面 | ||
21 | + arguments:参数列表,用于传递参数 | ||
19 | action|arguments|描述 | 22 | action|arguments|描述 |
20 | ---|---|--- | 23 | ---|---|--- |
21 | go.tab|{"index":tab_index}|跳转至指定index的tab(从0开始) | 24 | go.tab|{"index":tab_index}|跳转至指定index的tab(从0开始) |
-
Please register or login to post a comment