文本编辑器键盘快捷键将刷新 iOS 模拟器的 Safari 浏览器?

发布于 2024-12-22 17:47:37 字数 226 浏览 4 评论 0原文

在 TextMate 等文本编辑器中,按下

COMMAND + R

将保存 html 文档,切换到 Chrome 等浏览器,然后刷新页面。

那么问题来了,如何使用这个键盘快捷键在 iOS 模拟器中刷新 Safari 浏览器呢?

在 iOS 上为 Safari 开发时,是否还有其他更具交互性的编辑器或程序?

感谢您的帮助。

In text editors like TextMate, pressing

COMMAND + R

will save the html document, switch to a browser like Chrome, and refresh the page.

So the question is, how does one use this keyboard shortcut to refresh the Safari browser within the iOS Simulator?

Is there another editor or program that's more interactive when developing for Safari on iOS?

Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

愛上了 2024-12-29 17:47:37

模拟器内没有快捷方式,但如果您设置 Safari 并启用 Safari 的开发人员工具(在桌面上),您可以使用它来调试模拟器。如果您打开了开发工具,则 CMD + R 快捷键将刷新模拟器。

野生动物园>开发者工具> iPhone模拟器>你的应用程序的名称

然后 CMD + R 将使你变得更容易!

There's no shortcut within the simulator but if you set up Safari's enable Safari's developer tools (on your desktop) you can use that to debug the simulator. If you have dev tools open, the CMD + R shortcut will refresh the simulator.

Safari > Developer Tools > iPhone Simulator > name of your app

Then CMD + R will make it a lot easier for you!

风启觞 2024-12-29 17:47:37

默认情况下没有办法做到这一点,但如果您习惯在 shell 中工作(例如 Terminal.app),您可以查看类似这样的命令行工具:

https://github.com/fingertips/ios-sim

不确定您是否可以启动 Safari 等内置应用程序。

可能有用的一件事是,在桌面 Safari 中,如果启用“开发”菜单,则可以将用户代理设置为 iphone/ipod touch/ipad。我不确定这有多准确,但迭代可能会更快。 (如果您在桌面 safari 中没有看到“开发”菜单,请转到首选项,选择“高级”并确保选中“在菜单栏中显示开发菜单”复选框)

there is no way to do this by default, but if you're comfortable with working in the shell (e.g. Terminal.app) you could look into something like this command line tool:

https://github.com/fingertips/ios-sim

not sure if you can launch built in apps like safari, tho.

one thing that may be of use is that in desktop safari, if you enable the Develop menu you can set your user agent to be iphone/ipod touch/ipad. i'm not sure how accurate this is, but it might be faster for iterating. (if you don't see the Develop menu in desktop safari, go to preferences, select Advanced and make sure the "Show Develop menu in menu bar" checkbox is checked)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文