gpt4 book ai didi

jquery - Angular bootstrap 模态打开加载

转载 作者:行者123 更新时间:2023-12-01 03:39:30 26 4
gpt4 key购买 nike

我正在使用http://angular-ui.github.io/bootstrap/模态。

现在我想在页面加载时打开模态

  <script>
$(document).ready(function () {
open('lg');
});
</script>

最佳答案

Angular http://angular-ui.github.io/bootstrap/有一个指令和 $modal 服务,这两个都可以用来打开模态窗口。

然后您需要使用:

$modal.dialog({}).open('modalContent.html');  

这里有一个类似的问题:Invoking modal window in AngularJS Bootstrap UI using JavaScript

关于jquery - Angular bootstrap 模态打开加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24780767/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com