从页面A ajax请求到页面B(ace模版的页面)时出现该错误提示
原因在于
ace模版里面的页面,是调用的远端 文件
<link rel="stylesheet"
href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script
src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
修改成本地引用这些文件后正常:
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css">
<script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
本人不擅长前端,目前还搞不懂,具体原因,如有知道的同仁,请告知