在iOS Simulator中查看源代码? [英] View source in iOS Simulator?

查看:105
本文介绍了在iOS Simulator中查看源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道我可以在Apple iOS模拟器中检查网站源代码的工具吗?诸如Firebug或Chrome开发者工具之类的工具会很棒,但是我还没有发现任何东西.

Does anybody know of a tool where I can inspect the source code of a site in Apple's iOS Simulator? Something like Firebug or the Chrome Developer Tools for this would be great, and I haven't found anything yet.

推荐答案

以前的旧答案包含过时的信息,因此已被删除.

The old, previous answers have been deleted as they contained obsolete information.

至少使用Xcode 4和Safari 6,在iPhone Simulator中打开一个Web视图,然后切换到桌面Safari.在Safari的开发"菜单中(必须在首选项"中启用它),您将找到一个"iPad Simulator"菜单,该菜单可让您打开Safari Web Inspector以便在模拟器中打开的页面!

Using at least Xcode 4 and Safari 6, open up a web view in the iPhone Simulator, then switch to the desktop Safari. In Safari's Develop menu (you have to enable it in the Preferences), you'll find an "iPad Simulator" menu that allows you to open up the Safari Web Inspector for the pages open in the simulator!

这篇关于在iOS Simulator中查看源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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