Home >Backend Development >PHP Tutorial >程序员 - thinkphp模板问题,如何在tp框架自己的模板中判断数组是否为空?

程序员 - thinkphp模板问题,如何在tp框架自己的模板中判断数组是否为空?

WBOY
WBOYOriginal
2016-06-06 20:43:542686browse



  • {$vo.update_time|date="Y/m/d",###}

  • {$vo.login_name}

  • +{$vo.account}


  • 回复内容:



  • {$vo.update_time|date="Y/m/d",###}

  • {$vo.login_name}

  • +{$vo.account}


  • <code class="lang-html"><volist name="list" id="vo" empty="暂时没有数据">
    {$vo.id}|{$vo.name}
    </volist>
    </code>

    http://document.thinkphp.cn/manual_3_2.html#empty
    多看TP官方的文档

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn