- (void)webViewDidFinishLoad:(UIWebView *)webView{
// [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('s-topBanner').style.display=\"none\";document.getElementById('s-topBanner').parentNode.removeChild(document.getElementById('s-topBanner'))"];
}
本文介绍了一个iOS应用中使用UIWebView的示例方法,展示了如何在页面加载完成后执行JavaScript代码以修改网页元素。
602

被折叠的 条评论
为什么被折叠?



