JavaScript刷新脚本已损坏

JavaScript刷新脚本已损坏,javascript,php,Javascript,Php,在这里,我有一个小JavaScript,每x秒刷新一次包含的页面。在WAMP上localhost可以完美地工作,但在Linux服务器上上载时却无法工作 JavaScript代码 <script> $(document).ready(function(){ setInterval(function(){ $("#weather").load("include/page.php"); },

在这里,我有一个小JavaScript,每x秒刷新一次包含的页面。在WAMP上localhost可以完美地工作,但在Linux服务器上上载时却无法工作

JavaScript代码

    <script>
$(document).ready(function(){
  setInterval(function(){   
            $("#weather").load("include/page.php");
        }, 1000);
});
</script>

$(文档).ready(函数(){
setInterval(函数(){
$(“#weather”).load(“include/page.php”);
}, 1000);
});
未捕获类型错误:$(…)。加载不是函数


使用meta每秒刷新一次页面

<meta http-equiv="refresh" content="1">

问题是我已经包含了两次jQuery。谢谢大家

为什么它是一个空的?回答你的问题了吗?你好@AidanHakimian不幸的是,它没有帮助!您能告诉我您使用的是哪个版本的jQuery吗?也许在你的帖子中包含这个脚本。
setInterval(function() {
  window.location.reload();
}, 1000);