0
我希望模態窗體彈出窗口,但不會出現。當我正在檢查元素 它說$(...)模態不是一個函數。 控制器:在角度js中彈出的模態窗體
AuthService.createAdmin(data, function (response) {
if (response.data.success == true) {
$location.path('/superAdmin');
} else if (response.data.success == false && response.data.errorCode == 100) {
$('#myModal').modal('show');
} else {
$location.path('/superAdmin');
}
});
HTML:
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Info</h4>
</div>
<div class="modal-body">
<p>The email address {{email}} already exists</p>
</div>
<div class="modal-footer">
<button data-dismiss="modal" ng-click="handleBack()" class="btn btn-default" id="cancel" type="button">OK</button>
</div>
</div>
</div>
</div>
$( '#myModal')顯示()? –
不工作#Simon Pertersen –
檢查你的引導CSS類。這是淡入淡出的問題。這是開放的,但我認爲不顯示。 –