在下面的代码中,但是ng-repeat中的一个div根本没有渲染,最后一个div被抛出ng-repeat我不知道这个代码有什么问题,请有人在这里找到错误
<div class="col_xs12 no_side_padding">
<div class="col_xs12 heading2 no_side_padding">
<div class="no_side_padding borderstyle">
Account Number
</div>
<div class="no_side_padding borderstyle">
Account Name
</div>
<div class="no_side_padding borderstyle">
Account Type
</div>
<div class="no_side_padding borderstyle">
Bank Name
</div>
<div class="no_side_padding borderstyle">
Category
</div>
<div class="no_side_padding borderstyle">
Manipulate
</div>
</div>
<div class="col_xs12 no_side_padding">
<div class="col_xs12 no_side_padding datadiv" ng-repeat="account in Accounts">
<div class="no_side_padding borderstyle">
<input type="checkbox" ng-model="account.isMarked" ng-checked=account.isMarked>
<span ng-bind="account.accountNo"></span>
</div>
<div class="no_side_padding borderstyle" ng-bind="account.accountName">
</div>
<div class="no_side_padding borderstyle">
<span ng-if="account.accountType=='1'">Savings Bank(SB)</span>
<span ng-if="account.accountType=='2'">Current Account(CA)</span>
<span ng-if="account.accountType=='3'">Fixed Deposit(FD)</span>
<span ng-if="account.accountType=='4'">Recurring Deposit(RD)</span>
<span ng-if="account.accountType=='5'">Housing Loan(HL)</span>
<span ng-if="account.accountType=='6'">Vehicle Loan(VL)</span>
</div>
<div class="no_side_padding borderstyle" ng-bind="account.bankName">
</div>
</div class="no_side_padding borderstyle">
<span ng-show="account.category=='1'">Supplier</span>
<span ng-show="account.category=='2'">Customer</span>
<span ng-show="account.category=='3'">Employee</span>
<span ng-show="account.category=='4'">Others</span>
</div>
<div class="no_side_padding borderstyle">
<a ng-click="editAccount(account)" ui-sref="dashboard.editaccount">Edit</a> | <a ng-click="deleteAccount(account)">Delete</a>
</div>
</div>
</div>
</div>
答案 0 :(得分:1)
将</div class="no_side_padding borderstyle">
更改为<div class="no_side_padding borderstyle">
。
答案 1 :(得分:0)
在此处添加我的评论作为答案。
Private Sub btnStatistics_click()
On Error GoTo Err_Handler
If PasswordOK() Then
DoCmd.Close acForm, "frmCustomer", acSaveYes
DoCmd.OpenForm "frmStatistics", acNormal, "", "", acEdit, acNormal
End If
Exit_This_Sub:
Exit Sub
Err_Handler:
MsgBox "Error #: " & Err.Number & " " & Err.Description
Resume Exit_This_Sub
End Sub
不是有效的div。删除正斜杠将起作用。此外,您还需要在代码末尾关闭2个额外的div