我有以下代码我如何每n秒运行一次jQuery load()请求?
$('document').ready(function() {
reload();
});
function reload() {
$('div#info').load('http://somesite.ru/script.php');
setInterval(reload(), 10000);
}
但好像方法重载()速度过快。 Firefox显示我的消息,关于jquery.min.js正在繁忙。我如何每10秒钟刷新一次页面的一部分?
无限循环:D – Alexander 2013-02-25 08:54:39
http://stackoverflow.com/questions/10425107/why-isnt-clearinterval-working-in-this-code – undefined 2013-02-25 09:06:38