为了账号安全,请及时绑定邮箱和手机立即绑定

ReferenceError:显示未在 HTMLInputElement.onclick 中定义

ReferenceError:显示未在 HTMLInputElement.onclick 中定义

PHP
喵喔喔 2022-07-29 10:11:26
我有一个问题(我搜索了答案,但没有人为我工作)。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"


查看完整回答
反对 回复 2022-07-29
  • 1 回答
  • 0 关注
  • 200 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号