【发布时间】:2015-10-29 19:00:36
【问题描述】:
我正在使用 AngularJS 和 Ionic,我正在使用 ng-bind-html 从 rest API 中提取数据。我想限制字符的数量,但还要在字符后面加上三个点,以向用户显示还有更多要阅读的内容...
到目前为止我有:
<p ng-bind-html="item.excerpt | limitTo: 100"></p>
但这只是限制字符并将它们切断。
【问题讨论】:
-
这个问题已经被回答 [there][1] [1]: stackoverflow.com/questions/18095727/…
-
没有一个方法描述了 ng-bind-html 的工作循环
标签: javascript angularjs ionic-framework