我有以下代码(在<head>
标签中)
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title th:unless="${pageTitle == 'TEMPLATE'}" th:text="${#strings.isEmpty(pageTitle) ? 'Broadleaf Demo - Heat Clinic' : pageTitle}"></title>
<title th:if="${pageTitle == 'TEMPLATE'}" th:remove="tag">
<title th:inline="text" th:include="${templateName} :: title" />
</title>
<meta name="description" content="Broadleaf Demo Store" />
<meta name="author" content="Broadleaf Commerce" />
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<blc:bundle name="style.css"
mapping-prefix="/css/"
files="style.css,
jquery.rating.css,
autocomplete.css" />
<link rel="stylesheet" th:unless="${#strings.isEmpty(additionalCss)}" />
<script src="../../js/jquery-1.10.2.js" th:src="@{/js/jquery-1.10.2.js}"></script>
<script src="../../js/jquery-ui-1.10.4.custom.min.js" th:src="@{/js/jquery-ui-1.10.4.custom.min.js}"></script>
<script src="../../js/libs/modernizr-2.5.3.min.js" th:src="@{/js/libs/modernizr-2.5.3.min.js}"></script>
<blc:googleAnalytics th:attr="orderNumber=${order != null ? order.orderNumber : null}" />
<script th:utext="${analytics}"></script>
我已经搜索了有关此问题的所有 Stackoverflow 问题,但我无法找到解决方案,因此我发布了此问题。
这里是已经加载的js文件
首先 jQuery-1.9.1.js 似乎正在加载,所以我删除了 jQuery-1.10.2.js 但我得到 $() is not defined 错误。我无法删除 jQuery-1.9.1.js,因为我不知道它是从哪里加载的。似乎没有脚本标签可以加载此处加载的其他 js 文件。
提前致谢。