Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 UIwebview 中有四个单选按钮,我使用 html 创建了单选按钮,我想获取所选按钮的值。请帮助我
NSString* javaScriptString = @"document.querySelector('input[name="rate"]:checked').value;" // run javascript in webview: [webView stringByEvaluatingJavaScriptFromString: javaScriptString];