I'm getting this error in Google Chrome developer tools:

jquery-2.0.2.min.map not found

I found a way to get rid of it by removing this line from my jquery-2.0.2.min.js:

//@ sourceMappingURL=jquery-2.0.2.min.map

然而,我不认为这是一个好主意,因为这可能只是一个暂时的解决方案,在future 可能会成为一个问题.因为我不太理解这个错误的本质和愚蠢的解决方案:是什么导致了这个错误,有更好的解决方案吗?

Apparently, this is not a question related to jQuery 2.0.2 only. A very similar Stack Overflow question with a great explanation is jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found). I hope this will shed some light on the situation.

推荐答案

1. Download the map file and uncompressed version of jquery. Put them with minified version. JavaScript

2. Include minified version into your HTML HTML

3. Check in Chrome Chrome

4. Read Introduction to JavaScript Source Maps

5. Get familiar with Debugging JavaScript

Jquery相关问答推荐

JQuery DateTimePicker-在 Select 中抓取星期几

在Click事件上将焦点设置为Kendo UI网格列筛选器文本框

如果在视窗中有相同的数据属性值,则jQuery/添加类

$ 不是函数 - jQuery 错误

ajax调用后Jquery事件不会触发

如何获取将在不提交的情况下提交的所有表单值

jQuery 1.4.1 中缺少 JSON 字符串化?

将一个类动态添加到 Bootstrap 的popover容器中

如何使用 jQuery go 除 HTML 标签?

在网络浏览器中,onblur 和 onfocusout 有什么区别?

如何通过 Select 插件使用 jQuery 验证?

Rails,单击link_to helper后未加载javascript

如何更改 dropzone.js 中的默认文本?

在jQuery中将逗号添加到数字

jQuery - 多个 :not Select 器

如何使用jquery获取点击链接的href?

所有但不是jQuery Select 器

Twitter Bootstrap alert 消息关闭并再次打开

Twitter Bootstrap 中的树

使用 Ajax 下载并打开 PDF 文件