jquery延迟函数的执行

jquery延迟函数的执行,jquery,delayed-execution,Jquery,Delayed Execution,我需要一些指导。我试图将这两个函数的执行延迟到页面完全加载后,或者在5000毫秒后定时执行 我使用的是最新的jQuery1.6 提前感谢您的帮助和代码提示:) 这将使您的代码仅在文档完全加载时运行 这将使您的代码仅在文档完全加载时运行 您可以使用 $(window).load(function(){ your code here }) // page has loaded including images 或 你可以用 $(window).load(function(){ your cod

我需要一些指导。我试图将这两个函数的执行延迟到页面完全加载后,或者在5000毫秒后定时执行

我使用的是最新的jQuery1.6

提前感谢您的帮助和代码提示:)

这将使您的代码仅在文档完全加载时运行

这将使您的代码仅在文档完全加载时运行

您可以使用

$(window).load(function(){ your code here }) // page has loaded including images 

你可以用

$(window).load(function(){ your code here }) // page has loaded including images 

因此,按照这些思路,
$(document).ready(function(){$(.footernav”).each(function(){var\u href=$(this.attr(“href”);$(this.attr(“href”,“_href+'?p=client');})所以沿着这些线
$(document).ready(function(){$(.footernav”).each(function(){var\u href=$(this.attr(“href”);$(this.attr(“href”,_href+“?p=client');})
$(window).load(function(){ your code here }) // page has loaded including images 
$(document).ready(function(){ your code here }) // dom has loaded