Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit edf13f4

Browse files
luffyjetluffyjet
luffyjet
authored and
luffyjet
committed
美化 Readme
1 parent 4d417bf commit edf13f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
WebViewJavascriptBridge
22
==========================
3-
根据[IOS marcuswestin/WebViewJavascriptBridge](https://github.com/marcuswestin/WebViewJavascriptBridge) 编写而来的JavascriptBridge,这样一来前端可以公用一套JS代码。使用方法和 marcuswestin/WebViewJavascriptBridge 也是基本一样
3+
根据[IOS marcuswestin/WebViewJavascriptBridge](https://github.com/marcuswestin/WebViewJavascriptBridge) 编写而来的JavascriptBridge。
44

5-
原理其实就是在 shouldOverrideUrlLoading 方法里截取特定的Url。
65

7-
同时也在此之上做了加强,根据Cordova的源码,将每一种消息封装成一个插件(RequestHandler),并统一管理起来(HandlerManager)。具体请看下面的 插件管理功能一栏。
6+
相比同类库的优点:
7+
1.[IOS marcuswestin/WebViewJavascriptBridge](https://github.com/marcuswestin/WebViewJavascriptBridge) 一样的使用方法,共用一套JS代码。
8+
2. 同时也在此之上做了加强,根据Cordova的源码,将每一种消息封装成一个插件(RequestHandler),并统一管理起来(HandlerManager),方便把各种不同的原生功能封装成独立的模块。具体请看下面的 插件管理功能一栏。
89

910
规定JS和Java之间用标准JSON格式字符串交互,JS传给Java的数据会封装成 org.json.JSONObject。
1011

11-
An Android bridge for sending messages between Java and JavaScript in WebViews. Based on [IOS marcuswestin/WebViewJavascriptBridge](https://github.com/marcuswestin/WebViewJavascriptBridge).
12+
(An Android bridge for sending messages between Java and JavaScript in WebViews. Based on [IOS marcuswestin/WebViewJavascriptBridge](https://github.com/marcuswestin/WebViewJavascriptBridge).)
1213

1314

1415
### Gradle

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /