侧边栏最新文章里标题显示的太长,影响美观,用下面的代码可以实现字数截断

widget('Widget_Contents_Post_Recent')->to($recent); ?>
next()): ?>

  • title(15); ?>


  • 限制字数为15个,做记录为备用!