Javascript load函数错误导致jQuery出现问题

Javascript load函数错误导致jQuery出现问题,javascript,php,jquery,load,Javascript,Php,Jquery,Load,我正在制作一个基本的PHP“游戏”,用于学习 对我来说,这就是学习PHP类的全部内容 我使用javascript的这一部分来持续加载包含“游戏”信息的2个div: function bla() { var timeTillWinner = $(".time").html(); if (timeTillWinner < '20') { $(".container").fadeOut(); //alert(timeTillWinner); } } // funct

我正在制作一个基本的PHP“游戏”,用于学习

对我来说,这就是学习PHP类的全部内容

我使用javascript的这一部分来持续加载包含“游戏”信息的2个div:

function bla() {
  var timeTillWinner = $(".time").html();
  if (timeTillWinner < '20') {
    $(".container").fadeOut();
    //alert(timeTillWinner);
  }
}

// function to reload the container
function pageUpdate(){
  $('body').load(document.URL +  '#playerList').load(document.URL + '.table-information');
  bla();
}
setInterval(pageUpdate, 10000);
有关于如何解决此错误的帮助吗?我可以用AJAX等加载div内容,但现在我只想在PHP上做一些简单的事情


谢谢

我认为引用的代码不会导致引用的错误。jQuery的加载绝对不会执行同步ajax请求。如果您的目标是首先加载页面并将其playerList元素用作唯一的内容,则需要在:.loaddocument.URL+“playerList”前面留出一个空格。类似地,下一个.load将使用.table信息。但是像这样一个接一个地执行两个.load调用没有任何意义,它们会无序地发生,您只能看到第二个调用完成后的结果。请阅读有关.load函数的更多信息。你根本没用对
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
SyntaxError: syntax error jquery.min.js:1