开发者

JS files problem (its methods still working even if I physically delete them (js files))

开发者 https://www.devze.com 2023-03-03 22:36 出处:网络
I have weird problem. I\'m using Eclipse for writing J2EE (java, jsf, javascript) application and a standard JS files for javaScript/jQuery code. And it works.

I have weird problem. I'm using Eclipse for writing J2EE (java, jsf, javascript) application and a standard JS files for javaScript/jQuery code. And it works.

But after some time, the changes which I make in 开发者_运维问答JS file are not forwarded to application and I have to delete it (js file) and make new one with else name.

Even when I keep <script type="text/javascript" src="js/global.js"></script> in xhtml file and global.js is already deleted, all methods are still working!!!

Do you ever met this kind of problem???


sounds like a caching problem. if you are using Firefox and the javascript code remains the same, try:
Ctrl + Shift + R.

This reloads the page and overrides the cache.

0

精彩评论

暂无评论...
验证码 换一张
取 消