jquery – 错误’找不到jquery-2.0.2.min.map’
问题:
我在Google Chrome开发者工具中收到此错误:
找不到jquery-2.0.2.min.map
我通过从jquery-2.0.2.min.js
删除这一行找到了摆脱它jquery-2.0.2.min.js
:
//@ sourceMappingURL=jquery-2.0.2.min.map
但是,我不相信这是一个好主意,因为这可能只是一个临时修复,可能会成为未来的问题。 因为我不太了解这个错误的性质和愚蠢的解决方案:是什么导致了这个错误并且有更好的解决方案吗?
显然,这不仅仅是与jQuery 2.0.2相关的问题。 一个非常相似的Stack Overflow问题有一个很好的解释是jQuery的jquery-1.10.2.min.map触发了404(Not Found) 。 我希望这会对局势有所了解。
I’m getting this error in Google Chrome developer tools:jquery-2.0.2.min.map not foundI found a way to get rid of it by removing this line from my jquery-2.0.2.min.js
:However, I don’t believe this was a good idea, since this may be just a temporary fix that may be a problem in the future.Since I don’t really understand the nature of this error and the goofy solution: what’s causing this error and is there a better fix for it?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.