Smarty接收后截断操作

如php

const login_info="this is my blog,you are tight";

 

html接收太长,显示10个,后面用....代替

{$smarty.const.login_info | truncate:10:"...."}

posted @ 2021-02-08 10:27  WhiteSpace  阅读(32)  评论(0编辑  收藏  举报