html:
<class=‘data-row’ ng-show=“dataShow[0]”>
< class=‘data-row’ ng-show=“dataShow[1]”>
<class=‘data-row’ ng-show=“dataShow[2]”>
…
angularjs: $scope.dataShow = [true, true, true, true, true, true, true, true, true, true];
请问ng-show可以用数组去判断吗?现在有个问题就是 假如 数组内只要有一个false ,之后的所有 即使是true 都不显示了,例如: $scope.dataShow = [false, true, true, true, true, true, true, true, true, true]; 或 $scope.dataShow = [true, true, true, true, true, true, true, false, true, true]; 像这样只要 当中有个false 后面是true 页面从false开始之后 都会被隐藏,请问是为什么?如何解决 或者 大神有更好的写法,求教!多谢!