关于Provisional headers are shown的问题

qq_35278367 2018-06-10 01:00:11
在网上看视频下载的源码,放在自己机上运行遇到的问题。如题
下面上图

部署在weblogic中 打开浏览器 单击“用户管理” 不能展开如下图

并且提示AdminTree.js脚本文件中parentDiv.children is not a function
AdminTree.js代码如下

var isIE = true;
var imgUp = "images/arrowUp.gif" ;
var imgDn = "images/arrowDn.gif" ;
function expandIt( head, fExpandOnly )
{
//alert(!fExpandOnly);
var bulletImg ;
var allCol = "document." + ( isIE ? "all." : "" ) + head ;
//var allCol = document.head;
var parentDiv = eval( allCol + "Parent" );
var childDiv = eval( allCol + "Child" );
if ( isIE )
{
if ( parentDiv )
bulletImg = parentDiv.children( 0 ).children( 'imEx' );
if ( childDiv )
{
if ( childDiv.style.display == "block" && (!fExpandOnly) )
{
childDiv.style.display = "none" ;
if ( bulletImg )
bulletImg.src = imgUp ;
}
else
{
childDiv.style.display = "block" ;
if ( bulletImg )
bulletImg.src = imgDn ;
}
}
}
else
{
if ( parentDiv )
bulletImg = parentDiv.document.images[ 'imEx' ];
if ( childDiv )
{
if ( childDiv.visibility == "hide" )
{
childDiv.visibility = "show" ;
if ( bulletImg )
bulletImg.src = imgDn ;
}
else if ( ! fExpandOnly )
{
childDiv.visibility = "hide";
if ( bulletImg )
bulletImg.src = imgUp ;
}
}
}
return false ; // cancels event
}

function doClick ( )
{
el = event.srcElement;
while ( el && el.tagName != "A" )
{
el = el.parentElement ;
}
if ( ! el ) return ;
if ( el.target != "main" ) return ;
hiliteSel( el );
}
var prevSel = null ;
function hiliteSel ( selLink )
{
var selColor = "red" ;
if ( prevSel )
{
prevSel.style.color = prevSel.prevColor ;
}
prevSel = selLink ;
prevSel.prevColor = selLink.style.color ;
selLink.style.color = selColor ;
}

function init() {
document.onclick = doClick ;
expandIt("head2");
//hiliteSel(ttt);
// parent.frames("Main").location.href = "/gtc/programMgr.html";
}

if ( screen.colorDepth > 8 )
{
// document.write( "<STYLE>BODY{background-image:url(/images/ai/tile_nav.jpg);}</STYLE>" );
}
var licenseID ='01-0006-0038-69648' ;
var pendingChanges =false ;


这个问题困扰了我好几天,新手刚刚入门,各位大佬帮小弟看看是啥问题
...全文
3706 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
天际的海浪 2018-06-10
  • 打赏
  • 举报
回复
你这个代码(视频)太过古老。不适用于现在的新版本浏览器

87,921

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧