【发布时间】:2014-09-10 15:20:53
【问题描述】:
为什么我的自定义 js 正在加载但 jquery-1.11.1.js 没有加载,尝试将其放在与我的自定义 js(StartPage.js) 相同的文件夹中,但仍然在 firebug 控制台上找不到它的显示。
<html>
<head>
<title>title</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-1.11.1.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/StartPage.js"></script>
</head>
<body>
<%@ include file="/html/StartPage.html"%>
</body>
</html>
【问题讨论】:
-
尝试:${pageContext.request.contextPath}/js/jquery-1.11.1.js
-
@thecbuilder,不使用这个
-
简单到可以通过查看源输出来弄清楚
-
@charlietfl 你能详细说明你的评论吗
-
路径明显不对,所以根据输出调整
标签: java javascript jquery spring servlets