好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

angular 三目运算符 需要换色或style

解决方法:直接简单粗暴写两个.有点挫,但实现需求了.

<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>

查看更多关于angular 三目运算符 需要换色或style的详细内容...

  阅读:35次

上一篇: angular.module方法

下一篇:Angular面试题二