2015年6月4日
摘要: 在smarty中可以有两种写法来获得循环次数(当然lz只会这两种:>,要是有大神会有其他的,欢迎补充)写法一:{section name=loop loop=3} {$smarty.loop.index}{/section}写法二:{foreachname=testitem=indexfrom=$... 阅读全文
posted @ 2015-06-04 16:31 帅帅的小猪猪 阅读(2276) 评论(0) 推荐(0) 编辑