一个变量的问题

yanzhimin 2003-12-16 04:20:04
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指的是什么。
...全文
33 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
angelheavens 2003-12-16
  • 打赏
  • 举报
回复
window.T==T

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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