简体   繁体   English

代码更改未生效-Visual Web Developer

[英]Changes in code not taking effect - Visual web developer

I have a button which is calling a function that displays an alert. 我有一个按钮正在调用一个显示警报的函数。 The alert is displayed but if I change the messege that the alert is showing, when I press the button the alert will still show the first message I wrote and not the updated one. 显示警报,但是如果我更改显示警报的消息,则当我按下按钮时,警报仍会显示我写的第一条消息,而不是更新的消息。 It is also happening when I add html tags, they won't show when I run the code. 添加html标记时也会发生这种情况,运行代码时它们不会显示。

Why is this happening? 为什么会这样呢?

You know the drill: make some edits to your document, click save, switch over to your browser, refresh it, and then observe the changes. 您知道演练:对文档进行一些编辑,单击“保存”,切换到浏览器,刷新它,然后观察更改。

However, every now and again I will catch myself viewing the wrong site page, viewing the site on a different browser, or viewing the client's old live site! 但是,我会不时地发现自己浏览了错误的网站页面,使用其他浏览器查看了该网站,或者查看了该客户的旧实时网站! Check your address bar + go into your folder and open the page again. 检查地址栏+进入文件夹,然后再次打开页面。

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

相关问题 使用XAMPP对.js文件进行代码更改无效 - Code changes to .js file taking no effect using XAMPP 在Visual Studio Web Developer Express 2012中删除注释的代码 - Removing commented code in Visual Studio Web Developer Express 2012 页面 URL 更改时 CSS 不生效 - CSS not taking effect when the URL of the page changes html5 currentTime 和音量更改未生效 - html5 currentTime and volume changes not taking effect Visual Web Developer Express中的静态Web项目 - Static web project in Visual Web Developer Express 安装Visual Web Developer 2010时出现问题? - Issues when installing Visual Web Developer 2010? Visual Web Developer Express Java断点未命中 - Visual Web Developer Express Javascript Breakpoints not hit 如何在Visual Studio Code预览侧打开Web控制台(例如Chrome控制台)并动态查看JavaScript更改? - How to open web console like Chrome console in Visual Studio Code preview side and see JavaScript changes dynamicaly? 在if语句中更改类名没有视觉效果,但属性已更改 - changing classname within if statement has no visual effect yet the property changes jQuery在ASP 2.0页中不起作用-Visual Web Developer 2008 Express - jQuery not working in ASP 2.0 page - Visual Web Developer 2008 Express
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM