<span ng-repeat="detail in item.RoleList|orderBy:OrderNum">{{detail.RoleName|nextRole:item.RoleList:$index}}</span>
.filter('nextRole', function () {//模块角色
return function (input, list, index) {
if (index == list.length - 1)
return input;
else
return input + '——'
};
});
本文深入探讨了在特定模块中如何使用角色过滤器来处理角色列表,通过AngularJS的filter功能实现角色名称的连接和展示,确保了角色列表的正确显示和用户界面的友好性。
314

被折叠的 条评论
为什么被折叠?



