主题:  请问这个函数作用是不是累加?

江湖中的宝贝

职务:普通成员
等级:2
金币:1.0
发贴:375
注册:2004/1/15 1:15:15
#12004/2/10 14:53:30
function showRecord
  tempRecord="<TABLE align=center border=0 cellPadding=5 cellSpacing=3 width=450>"
  tempRecord=tempRecord&"<tr><td bgColor="&tablebackcolor&">ID:<font color=ff0000>"&id&"</font> "
  if len(title)>0 then
  	tempRecord=tempRecord&"<span class=p9>公司:"&server.htmlencode(title)&"</strong>"
  end if
  
  if Goods<>1 then
      	tempRecord=tempRecord&"<br><span class=p9>订购的服务是:"&chooseGoods(Goods-1)
  end if
  if len(name)>0 then
  	tempRecord=tempRecord&"<br><span class=p9>姓名:"&server.htmlencode(name)
  end if
  if len(homepage)>0 then
  	tempRecord=tempRecord&"<br>电话:"&server.htmlencode(homepage)&"</a>"
  end if
  if len(mail)>0 then
  	tempRecord=tempRecord&"<br><span class=p9>地址:"&server.htmlencode(mail)&"</a>"
  end if
  if len(address)>0 then
  	tempRecord=tempRecord&"<br><span class=p9>EMAIL:"&server.htmlencode(address)
  end if
  
  tempRecord=tempRecord&"<br><span class=p9>时间:"&ndatetime
  tempRecord=tempRecord&"<br><span class=p9><a href=lookguest.asp?id="&id&"&page="&currentpage&">&gt;&gt;查看留言</a> <a href=delguest.asp?id="&id&"&page="&currentpage&">删除记录</a></td></tr></table>"
  response.write tempRecord
end function


tempRecord最后输出是不是经过一次次的累加,我不是很明白代码的意思!?



布鲁斯狼

职务:普通成员
等级:2
金币:11.0
发贴:377
注册:2003/8/5 10:27:27
#22004/2/10 17:46:54
是的



江湖中的宝贝

职务:普通成员
等级:2
金币:1.0
发贴:375
注册:2004/1/15 1:15:15
#32004/2/11 11:38:37
这样的方法很好吗?