在页面加载时不显示引导模式
我试图在这样的页面加载上显示一个bootstrap模式
$(document).ready(function(){ $('#mapModal').modal('show'); });
当页面加载时,整个页面上会出现黑色覆盖,但不显示模态窗口
编辑:
我尝试了$(window).load(function (){ });but that also does nothing
尝试使用较低版本的jQuery。
未捕获的错误:Bootstrap的JavaScript需要jQuery版本1.9.1或更高版本,但低于版本3
我得到了你的错误解决方案,你只需使用bootstrap verion 3.3.1
使用 :
CSS: – https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css
JS – https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js
和Jquery版本 – code.jquery.com/jquery-1.11.1.min.js