首页 > 代码库 > setwebviewclient setwebchromeclient 的区别

setwebviewclient setwebchromeclient 的区别

  自己在整一个demo,发现用 setwebchromeclient   并不能在自己写的webview里面加载打开的网页

 

对比:

 

   setwebviewclient:    

    Sets the WebViewClient that will receive various notifications and

    * requests. This will replace the current handler.

   setwebchromeclient:

          

    Sets the chrome handler. This is an implementation of WebChromeClient for
     use in handling JavaScript dialogs, favicons, titles, and the progress.
     This will replace the current handler.

 

setwebviewclient setwebchromeclient 的区别