我有一个问题(我搜索了答案,但没有人为我工作)。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定义了,会发生什么?谢谢。
1 回答

UYOU
TA贡献1878条经验 获得超4个赞
在您的 js 脚本中,您有以下行:
if(svdo_type == 'domain' || svdo_type == 'Domain' || || svdo_type == 'DOMAIN')
去掉多余的||
此外,您有几次以下行:
document.getElementById("info_to_customer").value =
没有 id "info_to_customer"
- 1 回答
- 0 关注
- 200 浏览
添加回答
举报
0/150
提交
取消