如何禁用按鈕,我得到了以下的角模板:如果沒有複選框被選中
<tr ng-repeat="user in users">
<td><input type="checkbox"></td>
<td>{{user.username}}</td>
<td>{{user.apiKey}}</td>
<td>{{user.apiSecret}}</td>
</tr>
...
<button type="button" class="btn btn-danger"><i class="fa fa-trash-o"></i></button>
如何禁用按鈕,如果沒有複選框被選中,但實現它時,表中的一個或多個複選框被選中?
我怎樣才能確定哪個表項被檢查並訪問用戶數據?
什麼是 「選中」 和它從何而來? –
查看更新的答案,這是一個HTML屬性。 –
這似乎並不適用於我: '' '' 但是當我檢查時沒有任何反應。 –