返回按鈕
if ([self.webView canGoBack]) {//判斷能否返回
[self.webView goBack];//返回
}
獲取頁面title
- (void)webViewDidFinishLoad:(UIWebView *)webView{
NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];
self.titlelabel.text = title;
}