【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
我用js打开窗口时为什么老是提示【错误: 'window.top.document.all.WhiteCover.style' 为空或不是对象】,这个WhiteCover是什么啊? 下面是js---------------------------------------------//显示居中模式对话框 [2007-12-12 增加showWhiteCover参数,表示是否雾化,当且仅当此参数指定为flase时,对top窗口不进行雾化处理]function doShowDialogX(id,width, height, title, functionName, showWhiteCover) { alert(window.top.document.all.length); for(var i =window.top.document.all.length;i>0;i-- ){ alert("第"+i+"对象"+window.top.document.all[i]) } window.top.document.all.WhiteCover.style.width = window.top.document.body.scrollWidth; window.top.document.all.WhiteCover.style.height = window.top.document.body.scrollHeight; if (showWhiteCover===false) { window.top.document.all.WhiteCover.style.display = "none"; } else { window.top.document.all.WhiteCover.style.display = ""; } Popwidth = width || 400; Popheight = height || 300; title=title||""; Popleft = (top.document.body.clientWidth - Popwidth) / 2; Poptop = (top.document.body.clientHeight - Popheight) / 2; if(Popleft<0) Popleft = 0; if(Poptop<0) Poptop = 0; top.openthediv(id,Popwidth, Popheight, Popleft, Poptop, title, functionName, showWhiteCover); return "PopDialog"+id; }