且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 android webview 中使用弹出窗口

更新时间:2023-01-23 17:54:02

试试

 webViewObject.getSettings().setJavaScriptCanOpenWindowsAutomatically(true)

如果你想打开窗口......就像 window.open 一样,它是必需的.对于 javascriptenable 应该设置为 true.. 希望我理解你的请求正确.

if you want to open window...like window.open thn its required. for the javascriptenable should be set to true.. hope i understand ur quest correct.