有些人可以告诉我下面的代码是否有错误,因为我无法将按钮切换为
<div class="modal-footer textAlignLeft">
<button type="button" class="btn btn-sm btn-default"
name="close" ng-show="!closeHidden"
ng-click="cancel()">CLOSE</button>
<button type="button" class="btn btn-sm btn-default"
name="cancel" ng-show="closeHidden"
ng-click="cancelUpload()">CANCEL</button>
<button type="button" class="btn btn-sm btn-primary marLeft10"
name="attachfile" id="uploadBtn"
ng-click="attach()" ng-disabled="attachDisabled">
{{ resource["common.attachbtn"] }}
</button>
</div>
点击“附加”按钮后,我希望关闭按钮消失,并显示取消按钮。但它总是只显示关闭按钮,虽然我看到范围变量scope.closeHidden在我的代码中更新为true。任何提示?