ecshop 之foreach 最后一次循环
作者:互联网观察 发布时间:Jul 19, 2010 分类:技术
ecshop的foreach循环有几个变量可以使用。代码如下<!--{foreach from=$categories_ban item=cat name=catindex}--><!--{if !$smarty.foreach.catindex.last}-->"{$cat.brand_name} {$smarty.foreach.catindex.index}",<!--{/if}--><!--{if $smarty.foreach.catindex.last}-->"{$cat.brand_name} {$smarty.foreach.catindex.index}"<!--{/if}--><!--{/foreach}-->last是判断当前循环是否是最后一次循环。对应的还有第一次循环。 适应于一些 对循环输出变量要求不同样式的环境
相关文章
- ios APP开发费用标准是多少
- mht2html mht 转换html工具
- dedecms 编辑器 附件按钮的修复
- python 3.2 mysql模块'int' does not support the buffer interface问题的解决
- 关于“LSM-Tree”
- 高效标准的图片预加载,预读取
- xbox live 用户好友下载器 xbox friendcenter
- cx_Freeze setup file not modle _elementpath error
- POST data should be bytes or an iterable of bytes. It cannot be str.
- 使用cx_freeze打包pyqt4程序为exe
文档信息
- 版权声明:自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0
- 原文网址:https://www.tianmeng.org/Technology_252/ecshop-之foreach-最后一次循环/
- 最后修改时间:2013年02月01日 22:22:17
当前暂无评论 »