简体   繁体   English

在 iOS 模拟器中查看源代码?

[英]View source in iOS Simulator?

Does anybody know of a tool where I can inspect the source code of a site in Apple's iOS Simulator?有人知道我可以在 Apple 的 iOS 模拟器中检查网站源代码的工具吗? Something like Firebug or the Chrome Developer Tools for this would be great, and I haven't found anything yet.像 Firebug 或 Chrome 开发者工具这样的东西会很棒,我还没有找到任何东西。

The old, previous answers have been deleted as they contained obsolete information.旧的以前的答案已被删除,因为它们包含过时的信息。

Using at least Xcode 4 and Safari 6, open up a web view in the iPhone Simulator, then switch to the desktop Safari. 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!在 Safari 的开发菜单中(您必须在首选项中启用它),您将找到一个“iPad 模拟器”菜单,该菜单允许您打开 Safari Web 检查器以查看模拟器中打开的页面!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM