如果一开始在html页面设置<div id="xxx">的属性ng-show="false",
根据需要是否要动态显示改div在js文件中更改div属性$("#xxx").setAttribute("ng-show", "true")后,
在浏览器(chrome)调试页面看到div的ng-show="true",但是,有个ng-hide:not的class下有属性display: none !important,
从而导致尽管ng-show改成了true,但display依旧为none;
综上,在js文件中实现动态显示div块(div真正地不在页面占位置),
一开始在html页面用属性style="display: none;",而后在js文件中使用$("#xxx").style.display="block"即可,
别用ng-show.