asp中的符号不明白?

来源:百度知道 编辑:UC知道 时间:2024/07/07 05:22:06
我修改的网站中有这样的代码: <td width="489" align="left"><div class="btkz"><a href="Show.asp?GuestID={$guestid}">{$guesttitle}</a> <font color="#999999">({$guesttime})</font> </div></td>
我不明白{$guesttime}这是模板还是函数?若是模板是在数据库中吧?

{$guesttime} 是模版中固定标签,整站搜索{$guesttime}应该有类似
temphtml = Replace(temphtml,"{$guesttime}",guesttime) 这样的代码

也可以把{$guesttime}当作一个占位符,最终字符{$guesttime}将被替换为数据库字段或者变量guesttime的值。

不是函数,应该说是模板中的自定义标签,用于生成页面读取模板内容时要替换的内容。
比如:Replace(temp,"{$guestid}",GuestID)

模板中的自定义符号。没有特殊意义。

function,用以替换相关的参数的