SCRIPT5009: & # 39; $ & # 39;仅在IE中未定义-已经安装了jQuery

SCRIPT5009: '$' is undefined for IE only - jQuery is already installed

本文关键字:安装 jQuery IE 仅在 SCRIPT5009 未定义      更新时间:2023-09-26

试图通过约曼在谷歌地图上建立一个热图。它在除IE以外的所有其他浏览器中都可以正常工作。不能在IE 10到Edge中运行。Edge不抛出错误,但它不工作。

错误是标准的'$'未定义:

SCRIPT5009: '$' is undefined

我已经将jQuery安装到<head>和底部的脚本旁边,以防有任何脚本在jQuery之前运行,但我没有运气。知道为什么吗?

URL: http://dmhost.co.uk/zoetis/googlemap/index.html

已解决

基本上,我是一个白痴。我将jquery脚本放在head标签的这一部分:
<!-- build:js scripts/vendor/modernizr.js -->
<script src="/bower_components/modernizr/modernizr.js"></script>
<!-- endbuild -->

这意味着jquery在'gulp-build'过程中被删除了。

对不起,伙计们,浪费时间了!查理