我在eclipse中设置我的服务器,当我运行它时控制台打印:
mai 02, 2013 4:05:13 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files (x86)\Microsoft Application Virtualization Client;c:\Program Files (x86)\Open Text\View\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Java\jre7\bin;C:\WorkspacePPL\apache-maven-3.0.4\bin;.
mai 02, 2013 4:05:13 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ppl-webapp' did not find a matching property.
mai 02, 2013 4:05:13 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote …Run Code Online (Sandbox Code Playgroud) 考虑到以下事实,如何在javascript / jquery中检查两个单选按钮中的哪个已选中,以获取输入的值:在HTML中,默认情况下,这两个单选按钮都是未选中的(未添加选中的属性)
<input type="radio" name="AS88" value="true" required>
<input type="radio" name="AS88" value="false">
Run Code Online (Sandbox Code Playgroud)
以下代码不起作用:
var elements = document.getElementsByName("AS88");
for (var i=0, len=elements.length; i<len; ++i) {
if (elements[i].checked) {
alert(elements[i].value)
}
};
Run Code Online (Sandbox Code Playgroud)
编辑:
:checkedjQuery中的解决方案,例如:
$('input[name="AS88"]:checked').val();
Run Code Online (Sandbox Code Playgroud)
总是返回未定义