模板volist length是不是不能使用变量哦

浏览:1164 发布日期:2016/11/20 分类:ThinkPHP5专区 关键字: thinkPHP5.0.3
{assign name="threshold" value="$Think.config.year_max+1"}
{volist name="years" id="year" length="$threshold"}
     {lt name="year" value="$threshold_year"}
        <!--some code-->
     {else/}
        <!--some other code-->
    {/lt}
{/volist}
这里的length="$threshold"没法限制个数
最佳答案
评论( 相关
后面还有条评论,点击查看>>