你的位置: Kiyo'Space首页 ASP 阅读文章 欢迎留下您的足迹

aspTemplate 的嵌套使用

[ ASP ] 分享

 

<!– BEGIN Block –>
<!– BEGIN SubBlock –>
{SomethingToSay}
<!– END SubBlock –>
<!– END Block –>

 

 

dim i,intLastIndex
intLastIndex=3

tpl.Setblock "test","SubBlock","varSubBlock"
tpl.SetBlock "test","Block","varBlock"

For i=0 to intLastIndex
tpl.SetVar "varSubBlock",""
For j = 0 to intLastIndex
tpl.SetVar "SomethingToSay",i&"’s Li===>"&j
tpl.parse "varSubBlock","SubBlock",true
Next
tpl.parse "varBlock","Block",true
Next

没有评论

  • (Required)
  • (Required, will not be published)