简体   繁体   English

无法在Google Chrome浏览器中加载JavaScript文件(jQuery步骤)

[英]JavaScript file(jQuery steps) not loading in Google Chrome

I am using a jQuery plugin the file name is jquery.steps.js. 我正在使用jQuery插件,文件名为jquery.steps.js。

I include it in index.html unambiguously but Chrome will not load this script. 我明确将其包含在index.html中,但Chrome不会加载此脚本。 It was somehow in the cache earlier which is why I never noticed this. 这是因为它早些时候在缓存中,所以我从来没有注意到这一点。

Can anyone suggest what the problem might be and how in the world I can get it to load. 任何人都可以建议问题出在哪里以及如何解决这个问题。

Thanks in advance 提前致谢

Im not sure why you are getting that problem but you could solve it adding 我不确定为什么会遇到这个问题,但是可以解决

'?whateverHere'

at the end of your src attribute of the script, that will enforce the script to be loaded again. 在脚本的src属性的末尾,这将强制再次加载脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM