方法1:NSString *location =[webView stringByEvaluatingJavaScriptFromString:@"document.location"];
方法2: NSLog(@"webView location = '%@'", webView.request.URL.absoluteString);
以上两种一定要放在页面成功加载之后才可以的!
本文共 193 字,大约阅读时间需要 1 分钟。
方法1:NSString *location =[webView stringByEvaluatingJavaScriptFromString:@"document.location"];
转载地址:http://presl.baihongyu.com/