第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如果我刪除警報,Javascript 重定向不起作用

如果我刪除警報,Javascript 重定向不起作用

皈依舞 2021-08-26 16:52:16
我有一個重定向頁面的功能。當我有這樣的代碼時,函數(shù)工作得很好。document.getElementById("orderNow").addEventListener("click", function() {// window.location.href = "http://www.w3schools.com", "_blank";var name = document.getElementById("customerName").textContent;var address = document.getElementById("customerStreet").textContent;var city = document.getElementById("customerCity").textContent;var state = document.getElementById("customerState").textContent;var zip = document.getElementById("customerPcode").textContent;var country = document.getElementById("customerCountry").textContent;var phone = document.getElementById("customerPhone").textContent;window.location.href = "https://www.amazon.com/gp/buy/addressselect/handlers/display.html?hasWorkingJavascript=1";var username = document.getElementById('enterAddressFullName');alert(username);但是如果刪除警報功能或這個:var username = document.getElementById('enterAddressFullName');重定向不起作用!我不知道如何命名問題,但這是我的問題。我不想要最后兩行代碼。幫我修
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 198 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號