TP5中在模板中判断对象是否空对象

如下:

{if condition="$list->isEmpty()"}
	<h5 class='text-center text-muted'>暂无记录</h5>
{/if}

猜你喜欢

转载自blog.csdn.net/nuc_badaomen/article/details/84975776
今日推荐