javascript
java 无法加载资源,JavaScript:无法加载资源:服务器响应状态为404(未找到)
我處理 JavaScript 應(yīng)用程序,該應(yīng)用程序在 https://localhost:63342/WalletClient/index.html_ijt=k4ock08pqsve8hb7b2b34ou3h5 的localhost地址中打開(kāi) . 看起來(lái)像這樣,
單擊余額按鈕時(shí),它應(yīng)執(zhí)行以下 Ajax GET 請(qǐng)求并嘗試打開(kāi)新頁(yè)面 balance.html ,
$("#balance").click(function () {
address = $('#address option:selected').text().trim();
selectedCurrency = $('#selectCurrency option:selected').text().trim();
// make sure in the backend the currency name samll/capital doesnt matter
$.ajax({
url: "https://www.hostdomain.com" + "/rest/wallet/addressAndCurrency" + "/" + selectedCurrency + "/" + address,
type: "GET",
dataType: "json",
success: function (data) {
var id = data["id"];
window.open("/WalletClient/balance.html?walletId=" + id);
},
failure: function (errMsg) {
console.log(errMsg.toString())
}
});
});
但是,在控制臺(tái)中,我收到 Failed to load resource: the server responded with a status of 404 (Not Found) 的消息,它似乎嘗試從 :63342/WalletClient/https://www.hostdomain.com/rest/wallet/addressAndCurrency/Bitcoin/mnV3CR6435p1LKcbGa8GVwt9euWrf3wWEX 的URL接收 GET 請(qǐng)求
我工作的Java應(yīng)用程序未部署,因此無(wú)法提供任何響應(yīng) . 但是,我擔(dān)心的是 GET 請(qǐng)求應(yīng)該嘗試從 https://www.hostdomain.com/rest/wallet/addressAndCurrency/Bitcoin/mnV3CR6435p1LKcbGa8GVwt9euWrf3wWEX 的URL中接收 JSON ,這不是試圖做的 .
這是什么問(wèn)題?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的java 无法加载资源,JavaScript:无法加载资源:服务器响应状态为404(未找到)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 普通筛法时间界的证明
- 下一篇: Spring MVC+ Spring +