[修復 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");
代碼在本地主機上運行良好,但在托管主機提供商上運行良好 - 在互聯網上搜索了 3 天
侃侃無極
2022-07-08 18:01:13