有弹框的jsp:
<body>
<%@ include file="roleXq.jsp"%>
</body>
roleXq.jsp:
<script type="text/javascript">
$(document).ready(function(){
alert(1)
})
</script>
有弹框的jsp:
<body>
<%@ include file="roleXq.jsp"%>
</body>
roleXq.jsp:
<script type="text/javascript">
$(document).ready(function(){
alert(1)
})
</script>
既然html代码可以加载那么肯定引用成功了 ,可以f12看看报什么错 可能是js路径的问题