I want to set a variable value. But I don't know how to. I want replace 3456 with "value".
Code:
NSString *value = textbox.text;
NSString *field = [captcha stringByEvaluatingJavaScriptFromString:@"document.getElementById('mainPagePart:rn3').value='3456';"];
我想您要说的是要将value
的内容放入字符串中吗?
NSString *field = [captcha stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('mainPagePart:rn3').value='%@';", value]];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.