加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > C语言 > 正文

填坑铺路20160902

发布时间:2020-12-15 00:30:20 所属栏目:C语言 来源:网络整理
导读:经常要给button加上 cursor: pointer smarty truncate: assign('articleTitle','Two Sisters Reunite after Eighteen Years at Checkout Counter.');?> {$articleTitle} {$articleTitle|truncate} {$articleTitle|truncate:30} {$articleTitle|truncate:30:"
  • 经常要给button加上cursor: pointer

  • smarty truncate:

assign('articleTitle','Two Sisters Reunite after Eighteen Years at Checkout Counter.');
?>

{$articleTitle}
{$articleTitle|truncate}
{$articleTitle|truncate:30}
{$articleTitle|truncate:30:""}
{$articleTitle|truncate:30:"---"}
{$articleTitle|truncate:30:"":true}
{$articleTitle|truncate:30:"...":true}
{$articleTitle|truncate:30:'..':true:true}

Two Sisters Reunite after Eighteen Years at Checkout Counter.
Two Sisters Reunite after Eighteen Years at Checkout Counter.
Two Sisters Reunite after...
Two Sisters Reunite after
Two Sisters Reunite after---
Two Sisters Reunite after Eigh
Two Sisters Reunite after E...
Two Sisters Re..ckout Counter.

// Paras:
// pos type required default desc
// 1. integer no 80 determines how many characters to truncate to.
// 2. string no ... a text string that replaces the truncated text,its length is included in the truncation length setting.
// 3. boolean no false determins whether or not to truncate a word boundary with false,or at the exact character with true.
// 4. boolean no false determins whether the truncation happens at the end of the string with false,or in the middle of string with true,note that if the setting is true,then word boundaries is ignored.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读