jQuery 1.3.2
3198 // Figure out if the W3C box model works as expected
3199 // document.body must exist before we can do this
3200 jQuery(function(){
3201 var div = document.createElement("div");
3202 div.style.width = div.style.paddingLeft = "1px";
3203 document.body.appendChild( div );
3204 jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
3205 document.body.removeChild( div ).style.display = 'none';
3206 });
主页面里的iframe页面,请求超时时,跳转到登录页面时
在IE下报document.body为空
FF下不会。
每个页面加载的时候都会执行这段代码,不知道有什么作用。