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

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

WBOY
WBOYOriginal
2016-06-06 20:43:542632Durchsuche



  • {$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官方的文档

    Stellungnahme:
    Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn