在做web前端中,很多人会遇到在smarty中如何统计数组的个数,其实很简单
比如数组$array
你只需要用{$array|@count}就可以获取。
转载于:https://www.cnblogs.com/webStyle/p/4165937.html