亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

代碼在本地主機上運行良好,但在托管主機提供商上運行良好 - 在互聯網上搜索了 3 天

代碼在本地主機上運行良好,但在托管主機提供商上運行良好 - 在互聯網上搜索了 3 天

侃侃無極 2022-07-08 18:01:13
[修復 AJAX 代碼路徑后的屏幕截圖錯誤 500] 不確定是否存在 ajax 調用問題或資源文件的路徑(jquery)標題,基本上我嘗試過 MVC,索引頁面包含所有頁面的路徑,標題,頁腳,控制器,功能,操作,連接......<!doctype html><html>  <head><!-- Required meta tags --><meta charset="utf-8"><meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">我的資源<!-- datetimepicker--><script src="./js/jquery.js"></script><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"><link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.css"><script src="https://code.jquery.com/jquery-3.5.0.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.3.3/umd/popper.min.js"></script><script src="//stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" ></script><script src="./js/jquery.datetimepicker.full.min.js"></script><!-- General CSS--><link rel="stylesheet" href="./css/all.css"><link rel="stylesheet" href="./css/style.css" type="text/css"><link rel="stylesheet" href="./css/style2.css" type="text/css"><!--<link rel="stylesheet" href="./css/style.css?nocache={timestamp}" type="text/css">-->我的 javascript... 頁腳文件$("#LoginSignup").click(function()   {// alert ("hi5");} $.ajax({ type: "POST", url: "functions.php?action=LoginSignup", data: "useremail=" + $("#useremail").val() + "&password=" + $("#password").val() + "&loginActive=" + $("#loginActive").val() + "&firstname=" + $("#firstname").val() + "&cpassword=" + $("#cpassword").val() + "&lastname=" + $("#lastname").val() + "&phonenumber=" + $("#phonenumber").val(),     success: function(result) {//alert ("hi");       if (result == "1")         {//alert ("hei");
查看完整描述

1 回答

?
青春有我

TA貢獻1784條經驗 獲得超8個贊

正如@CBroe 在帖子評論中提到的那樣:

您嘗試向 發出 POST 請求https://aquenzitech.com/functions.php?action=LoginSignup,但服務器以 404 Not Found 回答了該請求。因此,您很可能一開始就沒有將該名稱的文件上傳到該位置。 window.location.assign("http://localhost/14%20-%20Hairdresser/?page=home");– 您實際上并沒有將其作為生產代碼上傳到實時網站上?然后,您首先需要檢查錯誤日志中的內容。如果您不知道在哪里可以找到它,請詢問您的主機/查看他們的常見問題解答。

在將所有內容移至絕對路徑并更正一些錯誤路徑后,一切順利!


查看完整回答
反對 回復 2022-07-08
  • 1 回答
  • 0 關注
  • 118 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號