![iphone查看网页源代码](https://i-blog.csdnimg.cn/blog_migrate/abb656db4bc4e512f3e1057b01fb74f7.png)
iphone查看网页源代码
![](https://i-blog.csdnimg.cn/blog_migrate/00e564c42e16f937bff1cd364fb4ab78.png)
Mobile Safari is a really great browser — it’s fast, easy to use, and has most of the features you might want. What it doesn’t have, however, is a good way to view the source code of a page.
移动Safari是一款非常出色的浏览器-快速,易于使用,并具有您可能需要的大多数功能。 但是,它不是查看页面源代码的好方法。
For the vast majority of people, viewing the source code of a page on their phone or tablet probably isn’t the highest thing on their list, but for anybody who is curious about how sites are doing things, or for programmers, it can be pretty useful.
对于绝大多数人来说,在手机或平板电脑上查看页面的源代码可能并不是他们列表中最重要的事情,但是对于任何对网站的运行方式感到好奇的人或程序员而言,非常有用。
在iPhone或iPad上查看网页源 (Viewing Web Page Source on iPhone or iPad)
To accomplish this task, we’ll need an app that is appropriately called “View Source”, and you’ll need to be running iOS8. This particular app is 99 cents, which isn’t the same thing as free, but you probably paid a ton of money for that iDevice, so we’re assuming it won’t break the bank.
为了完成此任务,我们需要一个适当地称为“ View Source”的应用程序 ,并且您需要运行iOS8。 这个特定的应用程序是99美分,这与免费是不一样的,但是您可能为该iDevice支付了一大笔钱,因此我们假设它不会破坏银行业务。
Once you’ve installed it, you can access using the Share menu in Safari, which has really turned into the extensions menu at this point. Once there, press the More button on the second row.
安装后,您可以使用Safari中的“共享”菜单进行访问,这实际上已经变成了扩展菜单。 到达那里后,按第二行上的“更多”按钮。
![](https://i-blog.csdnimg.cn/blog_migrate/72d6cbc7545ea5db91fc271e4e8b6c34.png)
Then flip the View Source toggle to enabled.
然后将“查看源代码”切换到启用状态。
![](https://i-blog.csdnimg.cn/blog_migrate/277f23f448bb72830ce8c7609188ffde.png)
And now you’ll have a View Source button in the drop-down menu.
现在,您将在下拉菜单中具有“查看源代码”按钮。
![](https://i-blog.csdnimg.cn/blog_migrate/9a02e7274fa647effc85edc3944480a4.png)
Which, naturally, will let you view the source. There are some other options like sharing the source code, or switching to the DOM mode, but you can explore those for yourself.
自然,这将使您查看源。 还有其他一些选项,例如共享源代码或切换到DOM模式,但是您可以自己探索这些。
![](https://i-blog.csdnimg.cn/blog_migrate/29c3f7046e86dbffa0fd88aca6644763.png)
So if you’ve ever wondered how to view the source of a website from your phone, now you know.
因此,如果您曾经想知道如何通过手机查看网站的来源,现在就知道了。
翻译自: https://www.howtogeek.com/204991/how-to-view-web-page-source-code-on-your-iphone-or-ipad/
iphone查看网页源代码