📜  wkwebview 在 swift 代码示例中加载委托

📅  最后修改于: 2022-03-11 15:00:58.834000             🧑  作者: Mango

代码示例1
Set delegate > WKNavigationDelegate

func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
    print("Start loading")    
}

func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
    print("End loading")
}