javascript
java 无法加载资源,JavaScript:无法加载资源:服务器响应状态为404(未找到)
我處理 JavaScript 應用程序,該應用程序在 https://localhost:63342/WalletClient/index.html_ijt=k4ock08pqsve8hb7b2b34ou3h5 的localhost地址中打開 . 看起來像這樣,
單擊余額按鈕時,它應執行以下 Ajax GET 請求并嘗試打開新頁面 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())
}
});
});
但是,在控制臺中,我收到 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 請求
我工作的Java應用程序未部署,因此無法提供任何響應 . 但是,我擔心的是 GET 請求應該嘗試從 https://www.hostdomain.com/rest/wallet/addressAndCurrency/Bitcoin/mnV3CR6435p1LKcbGa8GVwt9euWrf3wWEX 的URL中接收 JSON ,這不是試圖做的 .
這是什么問題?
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的java 无法加载资源,JavaScript:无法加载资源:服务器响应状态为404(未找到)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 普通筛法时间界的证明
- 下一篇: Spring MVC+ Spring +