smarty 中的for循环的实现!
用一段section模拟 {section name=loop loop=$count} id: {$smarty.section.loop.index} {/section} 给count赋个值 $smarty->assign("count", 5);
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
用一段section模拟 {section name=loop loop=$count} id: {$smarty.section.loop.index} {/section} 给count赋个值 $smarty->assign("count", 5);