简体   繁体   中英

chrome, javascript is not updating between runs

for example, if I were to have alert("hello world") during run 1, and then deleted it for run 2, the code would still during the run.

this does not happen in IE, and I don't use firefox so I can't tell if it would happen there.

is chrome for some reason caching my runs and not loading them in on each run?

for reference my project is in .net

May be you should disable the chrome's cache during development.

1.Open your chrome, in its menu , navigate View --> Developer --> Developer Tools

2.In the DevTools panel , click the Setting button in the top right .

在此处输入图片说明

3.Check the Disable cache (while DevTools is open)

在此处输入图片说明

4.Keep the DevTools opend , and refresh your page to check if your new code works.

5.More details about the chrome DevTools , refer to Chrome DevTools Overview

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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