简体   繁体   English

iOS-HTML来源与检查桌面版Chrome中的元素时不同

[英]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.

相关问题 “噢,啪!” 检查Chrome中的元素时出错 - 'Aw, Snap!' Error when inspecting element in Chrome 检查时如何使元素从html DOM树中消失? - How to make element disappear from html DOM tree when inspecting? 元素在移动设备上的位置与桌面上不同 - Different position of element on mobile device than on desktop chrome 移动 VS chrome 桌面:相同元素的不同位置 - chrome mobile VS chrome desktop: different position of the same element 为什么从带有 javascript 的模板中看不到乘法的结果,但在 chrome 开发工具中检查元素时却看到了? - Why is the result of the multiplication not seen from the template with javascript but when inspecting the element in chrome dev tools it is? Javascript在Chrome中返回null,在源代码中返回HTML元素 - Javascript returns null in Chrome, HTML element in source 检查元素后出现奇怪的HTML问题 - Weird HTML issue after inspecting the element 在 chrome 中检查代码时收到错误消息 - getting error message when inspecting code in chrome React:如何调试为什么浏览器在Chrome> Dev Tools中显示的值不同于HTML元素? - React: How to debug why browser showing different value than HTML element in Chrome > Dev Tools? Chrome与Safari中不同的HTML布局 - Different HTML layout in Chrome than Safari
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM