进来拿分 jsvascript 很简单的问题
最近想学点jsp,下面这个函数我不知道targetDiv.style.display这句,谁帮我解释下
变量有点出来属性还是什么,style是什么呀!
function loadThreadFollow(ino,Online){
var targetImg =eval("followImg" + ino);
var targetDiv =eval("follow" + ino);
if (targetDiv.style.display!='block'){
if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading.asp?id="+ino+"&ForumID="+Online+"");}
targetDiv.style.display="block";
targetImg.src="images/minus.gif";
}else{
targetDiv.style.display="none";
targetImg.src="images/plus.gif";
}
}
正确回答给50分
其余的平分回答者