我有一个问题(我搜索了答案,但没有人为我工作)。Sooo,我试图通过向但同样的问题添加功能来解决它,我真的不知道为什么我会得到这个。
控制台日志中的错误:
ReferenceError:显示未在 HTMLInputElement.onclick 中定义
HTML 代码:
<center><h2 id="select_template">Do you want to choose an activation template?</h2></center>
<br>
<div class="custom-control custom-checkbox small" style="display: inline-block; text-align: left;">
<input type="radio" class="custom-control-input" name="searchValue" onclick="display('vps')" id="vps">
<label class="custom-control-label" for="vps">Virtual Private Server</label>
</div><br>
<div class="custom-control custom-checkbox small" style="display: inline-block; text-align: left;">
<input type="radio" class="custom-control-input" name="searchValue" onclick="display('webhost')" id="webhost">
<label class="custom-control-label" for="webhost">Web Host</label>
</div><br>
<div class="custom-control custom-checkbox small" style="display: inline-block; text-align: left;">
<input type="radio" class="custom-control-input" name="searchValue" onclick="display('mcgmsv')" id="mcgmsv">
<label class="custom-control-label" for="mcgmsv">Minecraft Game Server</label>
函数display定义了,会发生什么?谢谢。
UYOU