swift how to execute javascript after anjular have rendered the page?
问题 In my ios app, I used WKWebview.evaluateJavaScript() to execute javascript to get a div boundingRect. In my webpage, I used anjularjs to render part of my page, the page contents is as, <body ng-app="home" ng-controller="HomeController" style="min-height:700px;"> <printerinfo></printerinfo> </body> <div id="movie" style="border: 1px grey dotted; width: 120px; height: 90px;"></div> swift func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { self.wk.evaluateJavaScript("var