首页 > 代码库 > iOS webview 交互

iOS webview 交互

-(void)webViewDidFinishLoad:(UIWebView *)webview
{
    NSString *currentURL = [webView stringByEvaluatingJavaScriptFromString:@"document.location.href"];
    NSString *title = [webview stringByEvaluatingJavaScriptFromString:@"document.title"]; 
    NSString *js_result = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByName('q')[0].value=http://www.mamicode.com/'heyuan110';"];>

iOS webview 交互