我正在使用jQuery的加载函数在文档准备好时呈现我的一些内容.
$(document).ready(function(){
$('#header').load('header.html',function() {
//do call back function});
$('#footer').load('footer.html');
});
Run Code Online (Sandbox Code Playgroud)
我不希望我的回调函数在请求完成时执行,而是在加载的内容(或dom?)准备好被操作时.我怎样才能做到这一点?
谢谢