javascript - iOS Safari Won't Refresh Javascript Content
问题描述
I just created this Awesome Website with some interactions, but I found a bug on iOS Safari about the 'Firebase' Animation (it won't work). So I connected my iPhone(iPhone 6, iOS 12) to my Mac with a cable to use the Safari Web Inspector.
But then even when I reload the page or open it again, the JavaScript content won't reload. However, on desktop browsers, the changes have been applied.
The bad thing is that I'm a student and there's this stupid thing about screen time that blocks private mode and history&cache delete.
I really need to fix this bug and there's a bunch of other bugs to fix, so probably waiting until the page fully reloads will drive me nuts. Is there any way to do a 'hard' reload, or is there any other ways to fetch data from the server again?
解决方案
Just found the answer.
Connect the iPhone to your Mac via USB cable, open the web inspector, then press ⌥⌘R.
The keyboard shortcut also works for iOS safari.
推荐阅读
- matlab - 如何在 h=dt 的实际系统中将欧拉方法应用于 ODE 一阶?
- javascript - IE11 中的中止控制器不起作用。任何方式来支持它
- ruby-on-rails - Rails 销毁操作不会删除
- codeception - 如何忽略测试器中的html->单击代码接收?
- python - 更改流程的变量
- javascript - 导出 Highcharts 时无法根据需要禁用图例标题/启用图例标题
- java - ModelMapper 在将实体转换为 DTO 时产生异常
- php - 发送到某些地址时出现 Smtp 问题 - 错误:服务器不接受 rcpt
- java - Spring Boot 应用程序作为独立应用程序工作,但在 Tomcat 中部署时找不到类
- c# - 从 azure 授权匿名 API 端点