Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 iOS 6 应用程序,我只想从 UIWebVIew 中的网站加载一个 div,就像在 jquery 中一样.load(url #container)。这可能吗?
.load(url #container)
你可以试试这个买我不确定: NSString *html = [myWebView stringByEvaluatingJavaScriptFromString: @"document.getElementById('a div's ID').textContent"];
NSLog(html); 或者用html做任何你想做的事情......