HTML页面判断后台发送的地图是否为空,无论有无内容,在fireBug中总是obj{.},table class=' table table-hover list-table '
table class=' table table-hover list-table ' ng-if=' proxy view.cluster status.length0'都无法判断。
最终我觉得看网友的方法很有效,首先设置标志位,设置值为true,然后循环这个map。 进入循环后,表示map不为空,在循环中将标志位设置为false。 具体代码如下。
proxyView.isempty=true;
虚拟基础群集(for ) {
proxyView.isempty=false;
() ) ) ) )。
然后可以使用table class=' table table-hover list-table ' ng-if=' proxy view.isempty '进行判断。
转载于:https://www.cn blogs.com/query-SQL/p/4815636.html