找回密码
 立即注册
theaddJavascriptIntWebViewerface | android开发 2022-11-07 39 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
本文先以传统的文字语言来表达在Android的WebView框架里,JavaScript如何调用Java类别的履行逻辑。然后,藉由UML图形语言来表达上述逻辑的幕后框架联系。图形比较能精准而完整地表达出个模块(或称组件)之间的接口(Interface)人物。如此,可以容易阐述WebView的addJavascriptInterface()函数的深层涵义,做为后续各篇文章讨论接口设计的基础。例如,这个函数名称是:“addJavascriptInterface”而不是:“addJavascriptClass”或“addJavascriptObject”等

(This article first uses traditional text language to express how JavaScript calls the implementation logic of Java classes in the Android WebView framework. Then, the UML graphical language is used to express the framework relationship behind the above logic. Graphics can accurately and completely express the interface characters between modules (or components). In this way, it is easy to explain the deep meaning of the addJavascriptInterface() function of WebView, which serves as the basis for the discussion of interface design in subsequent articles. For example, the function name is "addJavascriptInterface" instead of "addJavascriptClass" or "addJavascriptObject")

[下载]10324878088.rar




上一篇:cocos2d-x例子编辑器
下一篇:200款优秀Android项目源码