diff --git a/readme-chs.md b/readme-chs.md index aea9caf..4b1a5e2 100644 --- a/readme-chs.md +++ b/readme-chs.md @@ -85,7 +85,7 @@ DSBridge v3.0 是一个里程碑版本,和v2.0相比,有许多变化,需 } ``` - 可以看到,DSBridge正式通过类的方式集中、统一地管理API。由于安全原因,所有Java API 必须有*"@JavascriptInterface"* 标注。 + 可以看到,DSBridge正式通过类的方式集中、统一地管理API。由于安全原因,所有Java API 必须有"@JavascriptInterface" 标注。 2. 添加API类实例到 DWebView . diff --git a/readme.md b/readme.md index 7ed71d8..9899cdb 100644 --- a/readme.md +++ b/readme.md @@ -71,13 +71,13 @@ To use a dsBridge in your own project: //for asynchronous invocation @JavascriptInterface - public void testAsyn(Object msg, CompletionHandler handler) { + public void testAsyn(Object msg, CompletionHandler handler) { handler.complete(msg+" [ asyn call]"); } } ``` - For security reason, Java APIs must be with *"@JavascriptInterface"* annotation . + For security reason, Java APIs must be with "@JavascriptInterface" annotation . 2. Add API object to DWebView .