一、Hybird技术

1)Native调用Web

 

2)Web调用Native

1. Android常见的方式有3种

  • 重写WebViewClient shouldOverrideUrlLoading
  • 重写WebChromeClient.onJsAlert,或onJsPrompt,或onJsConfirm
  • WebView.addJavascriptInterface

2. IOS

通过监控WebView的URL变化实现Web调用Native

 

3. Bridge

 

 

二、Hybird框架

 

1)PhoneGap

 

四、Device API

 

 

pdf文件下载:

http://download.csdn.net/detail/loneleaf1/8425145

 posted on 2015-02-14 21:58  咖啡机(K.F.J)  阅读(207)  评论(3)    收藏  举报