一个变量的问题
function AddTree(word,id,topid)
{
var topobj = null
if(!eval("window.T"+topid))
{
MarkDiv.insertAdjacentHTML("beforeEnd","<li id='T"+topid+"' class='Tclose'></li><ul id='T"+topid+"_list' class='TLclose'></ul>")
}
topobj = eval("window.T"+topid+"_list")
if(eval("window.T"+id))
{
var InsertTreeobj = eval("window.T"+id)
InsertTreeobj.innerHTML = word
var InsertTreeListobj = eval("window.T"+id+"_list")
topobj.insertAdjacentHTML("beforeEnd",InsertTreeobj.outerHTML+InsertTreeListobj.outerHTML)
InsertTreeobj.outerHTML = ""
InsertTreeListobj.outerHTML = ""
}
else
{
topobj.insertAdjacentHTML("beforeEnd","<li id='T"+id+"' class='Tclose'>"+word+"</li><ul id='T"+id+"_list' class='TLclose'></ul>")
}
谁能给解释一下window.T指的是什么。