返回按钮
if ([self.webView canGoBack]) {//判断能否返回
[self.webView goBack];//返回
}
获取页面title
- (void)webViewDidFinishLoad:(UIWebView *)webView{
NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];
self.titlelabel.text = title;
}
网友评论