为什么如果我在Javascript文件中更改任何行,如果我构建并重建它不起作用? [英] Why If I Change Any Line In Javascript File It Not Work In If I Build And Rebuild ?

查看:60
本文介绍了为什么如果我在Javascript文件中更改任何行,如果我构建并重建它不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的webapplication中,我将使用javascript脚本外部文件。如果我更改任何行或如果我将警报消息放入javascript文件中,如果我一次又一次地构建和重建,即使我清除了浏览器缓存,新行不起作用,它只使用旧脚本,我的意思是新添加不工作一次又一次它工作以前的脚本,



我将尝试删除浏览器中的缓存,关闭并打开vs2012,清除我的文档文件夹中的临时项目,删除临时sap文件表单

C:\ Windows \ microsoftoft.NET \ Framework \v4.0.30319 \Temporary ASP .NET文件

但仍然只能使用脚本。



如果我使用断点,在IE中打开动态javascript文件,新更改的行没有出现,但在原始的javascript页面中它有新更改的行。





如果我在同一页面中使用脚本编码并改变一些线,但不清楚chahe,一次又一次以前的javascript线工作。



请尽快回复



问候

Aravind

Hi In my webapplication i will use javascript script external file.if i change any line or if i put alert msg in javascript file,if i build and rebuild again and again,even though if i clear browser cache,new line not work ,it only work old script,i mean new added not work again and again it work previous script,

I will try to remove cache in browser,close and open vs2012,clear temporary project in My Documents folder,remove temporary sap file form
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files"
but still work only script only.

If i use breakpoint,in IE it open that dynamic javascript file,in that newly changed line not appear,but in original javascript page it have newly changed line.


If i use script coding in same page and change some line ,but not clear chahe ,again and again previous javascript line work.

Pls reply asap

Regards
Aravind

推荐答案

1. JavaScript文件不是在Visual Studio中构建的过程中构建的,它们是内置已执行和<浏览器自动code>缓存。



2.每次更改任何JavaScript文件后,您都必须清除浏览器缓存,并且不需要在Visual Studio中构建/重建源代码。



这是一个关于如何清除浏览器缓存的链接: http://www.wikihow.com/Clear-Your-Browser's-Cache [ ^ ]
1.The JavaScript files are not built in the process of building in Visual Studio, they are built, executed and cached automatically by the browser.

2.After each change in any JavaScript files you have to clear the browser cache only, and no build/rebuild of the source code in Visual Studio is necessary.

Here is a link about how to clear the browser cache: http://www.wikihow.com/Clear-Your-Browser's-Cache[^]


我也遇到了同样的问题,我已经在浏览器中删除了缓存并进行了构建,重建和清除项目但没有我已经多次面对这个问题了。

所以我关闭了视觉工作室,现在我的问题解决了。
I have also faced the same problem for this i have deleted cache in browser and did build,rebuild and clear project but not succeeded.I have faced this problem many times.
So i closed visual studio and opened now my problem was solved.


这篇关于为什么如果我在Javascript文件中更改任何行,如果我构建并重建它不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆