简体   繁体   English

Netbeans 中的代码更改未反映在项目中

[英]Code changes in Netbeans not reflected in project

Often times while working in Netbeans the changes I make in my code are not visible in the actual project.很多时候在 Netbeans 中工作时,我在代码中所做的更改在实际项目中是不可见的。 I'm working on a website using HTML/PHP and a lot of times, I make certain changes to my code, save it and then when I open the website in my browser it's like I never made any changes.我在一个使用 HTML/PHP 的网站上工作,很多时候,我对我的代码进行了某些更改,保存它,然后当我在浏览器中打开网站时,就像我从未做过任何更改一样。 It's really frustrating.这真的很令人沮丧。 Please help.请帮忙。

PS: I've noticed it mostly happens when I make changes to the CSS file. PS:我注意到它主要发生在我对 CSS 文件进行更改时。

First I would think of blaming Netbeans.首先,我会想到责怪 Netbeans。 Or you for not letting Netbeans upload changes to the server on Save.或者您不让 Netbeans 在保存时将更改上传到服务器。

But if it is mostly CSS (and I suppose Javascript), I would think of caching by your browser.但如果它主要是 CSS(我想是 Javascript),我会考虑通过您的浏览器进行缓存。

You can try Ctrl-F5 -in your browser- for forced refresh.您可以在浏览器中尝试按 Ctrl-F5 强制刷新。 Or set the cache settings on your development server so, that a file is never cached或者在你的开发服务器上设置缓存设置,这样文件就不会被缓存

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

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