[英]iOS - HTML source is different than when inspecting element in Chrome on desktop
I am trying to get the html of a website to put in my iOS app. 我正在尝试将网站的html放入我的iOS应用中。 When I log the html from an NSData variable through an NSURLConnection, the html is different if I then went to the website on my desktop and clicked inspect element on the element that I am trying to find in the iOS html.
当我通过NSURLConnection通过NSData变量记录html时,如果我随后转到桌面上的网站并单击我试图在iOS html中找到的元素上的inspect元素,则html是不同的。 Why would it be different?
为什么会有所不同? Is it because I clicked specifically on that element?
是因为我专门点击了那个元素吗? It looks the same on iOS and the desktop because I have it loaded into a UIWebView.
它在iOS和桌面上看起来都一样,因为我已将其加载到UIWebView中。
Update: I have been told that in Chrome it is the rendered source code. 更新:有人告诉我在Chrome中它是渲染的源代码。 How can I get the rendered source code in iOS?
如何在iOS中获取渲染的源代码?
In Chrome's Developer Console, it's showing rendered source codes (after AJAX and extension's modifications). 在Chrome的开发者控制台中,它显示了渲染的源代码(在AJAX和扩展程序的修改之后)。 Code mistakes (such as unclosed tags) will be fixed too.
代码错误(例如未关闭的标签)也将得到修复。
It's NOT your original source code. 这不是您的原始源代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.