来自 电脑系统 2019-09-19 12:05 的文章
当前位置: 金沙澳门官网网址 > 电脑系统 > 正文

web自动填充账号密码

- webViewDidFinishLoad:(UIWebView *)webView API_DEPRECATED("No longer supported.", ios(2.0, 12.0)) { if([webView.request.URL.absoluteString containsString:@"xxxxxx"]){ NSString *loginName = [NSString stringWithFormat:@"immouo%@",[MouoUserManager sharedAccountManager].user.moyouId]; NSString *passWord = @"111111"; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('username').value='%@'",loginName]]; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('password').value='%@'",passWord]]; }else if([webView.request.URL.absoluteString containsString:@"xxxxxx"]){ NSString *loginName = [NSString stringWithFormat:@"immouo%@",[MouoUserManager sharedAccountManager].user.moyouId]; NSString *passWord = @"111111"; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('regname').value='%@'",loginName]]; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('regpass').value='%@'",passWord]]; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('repassword').value='%@'",passWord]]; } }

本文由金沙澳门官网网址发布于电脑系统,转载请注明出处:web自动填充账号密码

关键词: