模板引擎支持标签的多层嵌套功能,可以对标签库的标签指定可以嵌套。
系统内置的标签中,volist、switch、if、elseif、else、foreach、compare(包括所有的比较标签)、(not)present、(not)empty、(not)defined等标签都可以嵌套使用。例如:
{volist name="list" id="vo"}
{volist name="vo['sub']" id="sub"}
{$sub.name}
{/volist}
{/volist}
上面的标签可以用于输出双重循环。
本文地址:https://www.qiuhai.com/doc/1705.html 复制链接
如果还有疑问,欢迎加入我们的QQ交流群:887790 加入Q群
易优最新程序下载: 点击下载