标签:
解决方法:直接简单粗暴写两个.有点挫,但实现需求了.
<font style="color:red" ng-show="boxlist.lineTitle.length > 9">{{ boxlist.lineTitle.length > 9 ? boxlist.lineTitle.substring(0,8)+‘...‘: boxlist.lineTitle}}</font>
<font style="color:green" ng-show="boxlist.lineTitle.length <= 9">{{ boxlist.lineTitle.length > 9 ? boxlist.lineTitle.substring(0,8)+‘...‘: boxlist.lineTitle}}</font>
标签:
原文地址:http://www.cnblogs.com/ignacio/p/5633899.html