Javascript 代码在本地主机上运行良好,但在hostinger主机提供程序上不起作用-在internet上搜索3天,迄今为止多次尝试都是徒劳的

Javascript 代码在本地主机上运行良好,但在hostinger主机提供程序上不起作用-在internet上搜索3天,迄今为止多次尝试都是徒劳的,javascript,jquery,ajax,Javascript,Jquery,Ajax,[在AJAX代码处修复路径后出现屏幕截图错误500] 不确定是否存在ajax调用问题或资源文件的路径(jquery) <!-- datetimepicker --> <script src="./js/jquery.js"></script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">

[在AJAX代码处修复路径后出现屏幕截图错误500] 不确定是否存在ajax调用问题或资源文件的路径(jquery)

<!-- 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">-->
页眉,基本上我试过MVC,其中索引页包含所有页面的路径、页眉、页脚、控制器、函数、操作、连接

<!doctype html>
<html lang="en">
  <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">-->

正如@CBroe在帖子评论中提到的:

<!-- 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">-->

您试图向
https://aquenzitech.com/functions.php?action=LoginSignup
,但服务器的回答是找不到404。因此,最有可能的情况是,您没有首先将该名称的文件上载到该位置。
window.location.assign(“http://localhost/14%20-%20美发师/?主页“–您实际上没有将其作为生产代码上传到live网站?

然后,您需要首先检查错误日志中关于这一点的说明。如果你不知道在哪里可以找到它,问问你的主人/查看他们的常见问题

<!-- 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">-->

在将所有路径移动到绝对路径并纠正了一些错误路径后,使一切都顺利运行

您试图向
https://aquenzitech.com/functions.php?action=LoginSignup
,但服务器的回答是找不到404。因此,最有可能的情况是,您没有首先将该名称的文件上载到该位置。
window.location.assign(“http://localhost/14%20-%20美发师/?主页“–您实际上没有将其作为生产代码上传到live网站?TKS CBroe!修复路径后,出现错误500,我将尝试在此处发布一个屏幕截图,然后您需要首先查看错误日志中关于该错误的说明。如果您不知道在哪里可以找到它,请询问您的主人/查看他们的常见问题。@CBroe解决了它!谢谢
<!-- 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">-->