本文主要是介绍WKWebView Completion handler passed to -[WebViewVC webView:runJavaScriptAlertPanelWithMessage:initi,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
WKWebView 获取js弹框报错
Completion handler passed to
-[WebViewVC webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]
was not called
原因
For user security, your app should call attention to the factthat a specific website controls the content in this panel. A simple forumlafor identifying the controlling website is frame.request.URL.host.The panel should have a single OK button.谷歌翻译:为了用户安全,您的应用应引起注意特定网站控制此面板中的内容。 一个简单的论坛用于标识控制网站的是frame.request.URL.host。该面板应具有一个“确定”按钮。简而言之就是:
苹果要求显示js的弹框(比如alert
这篇关于WKWebView Completion handler passed to -[WebViewVC webView:runJavaScriptAlertPanelWithMessage:initi的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!