我有一個問題(我搜索了答案,但沒有人為我工作)。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 關注
- 199 瀏覽
添加回答
舉報
0/150
提交
取消