我也遇到了关于添加模块框的闪动消失,现在问题解决了,
一般有两个地方可能出错
第一个是头部出错,重复添加js,因为在里面重复添加了bootstrap.js和bootstrap.min.js,把红色行其中的一行删除掉就可以了,
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"></link></head>
第二种:如果<head>没有出错那么,在<button> 这里面加入type=“button”试试,只有button才能触发所添加的模态框
<button class="btn btn-primary btn-lg" type="button" data-toggle="modal" data-target="#myModal">
添加
</button>
网上也有很多其他的解法,如果解决不掉也可以看下其他的
以后我遇到其他的不懂得问题和解决方法我也会发到这个博客上来的
我也是初学者,希望大家共同进步。