问题描述
我试图获取单选输入的值,但由于某种原因它返回null。这是代码:
HTML
from tensorflow.contrib.memory_stats import MaxBytesInUse
with sess.graph.as_default():
print("Max memory usage: ",convert_units(sess.run(MaxBytesInUse())))
JS
<form id="myForm">
<input name="gender" type="radio" value="male" />
<label for="male">Male</label>
<input name="gender" type="radio" value="female" />
<label for="female">Female</label>
</form>
const form = document.getElementById("myForm");
const selectedGender = document.querySelector("input[name='gender']:checked");
为什么我在控制台中没有输入空值?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)