Created
June 27, 2017 01:38
-
-
Save movii/c9b049a4b337df15d6bb29b726e05f70 to your computer and use it in GitHub Desktop.
笔记:iOS 与 JavaScript 的交互(一):UIWebView - 2.1 直接使用 stringByEvaluatingJavaScript(from:)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func webViewDidStartLoad(_ webView: UIWebView) { | |
let jsString = "alert('UIWebView Start Loading from local file')" | |
webviewBrowser.stringByEvaluatingJavaScript(from: jsString) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment