文件未在本地主机上更新 [英] File not updating on localhost

查看:136
本文介绍了文件未在本地主机上更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里拉头发.我认为我真的很喜欢基本的东西,但这是我的错误.我用以下树状视图"构建了一个简单的网页.

在我的readjson.js中,我从存储在json/label.json中的json文件中读取.但是!

即使我已经更新了json文件,它在启动时也会读取json文件的第一个版本.使用谷歌浏览器,并尝试刷新浏览器,清理我的构建,依此类推.仍然不会更新localhost上的json文件.

是否有其他人遇到此问题,我该如何解决?

解决方案

您是否尝试过打开开发者控制台(ctr shift j)并使用空缓存和硬重载"选项右键单击刷新图标? /p>

I am pulling my hair here. I think I am falling into som really basic stuff but here is my error. I have built a simple webpage with the following "tree-view".

in my readjson.js I read from my json-file stored in json/label.json. However!

Even if I have updated my json-file it reads the FIRST version of the json-file when I started. Using Google Chrome and have tried to refresh the browser, clean my build an so on. Still wont update the json-file on localhost.

Have anyone else run into this and how do I solve it?

解决方案

Have you tried to bring up the developer console (ctr shift j) and right click on the refresh icon using the "Empty Cache and Hard Reload" option?

这篇关于文件未在本地主机上更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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