<i id='qJHVf'><tr id='qJHVf'><dt id='qJHVf'><q id='qJHVf'><span id='qJHVf'><b id='qJHVf'><form id='qJHVf'><ins id='qJHVf'></ins><ul id='qJHVf'></ul><sub id='qJHVf'></sub></form><legend id='qJHVf'></legend><bdo id='qJHVf'><pre id='qJHVf'><center id='qJHVf'></center></pre></bdo></b><th id='qJHVf'></th></span></q></dt></tr></i><div id='qJHVf'><tfoot id='qJHVf'></tfoot><dl id='qJHVf'><fieldset id='qJHVf'></fieldset></dl></div>
      • <bdo id='qJHVf'></bdo><ul id='qJHVf'></ul>
    1. <tfoot id='qJHVf'></tfoot>

      <legend id='qJHVf'><style id='qJHVf'><dir id='qJHVf'><q id='qJHVf'></q></dir></style></legend>

        <small id='qJHVf'></small><noframes id='qJHVf'>

        源代码和 DOM 有什么区别?

        What is the difference between source code and DOM?(源代码和 DOM 有什么区别?)

          <tbody id='YX6gc'></tbody>

            <legend id='YX6gc'><style id='YX6gc'><dir id='YX6gc'><q id='YX6gc'></q></dir></style></legend>
            • <i id='YX6gc'><tr id='YX6gc'><dt id='YX6gc'><q id='YX6gc'><span id='YX6gc'><b id='YX6gc'><form id='YX6gc'><ins id='YX6gc'></ins><ul id='YX6gc'></ul><sub id='YX6gc'></sub></form><legend id='YX6gc'></legend><bdo id='YX6gc'><pre id='YX6gc'><center id='YX6gc'></center></pre></bdo></b><th id='YX6gc'></th></span></q></dt></tr></i><div id='YX6gc'><tfoot id='YX6gc'></tfoot><dl id='YX6gc'><fieldset id='YX6gc'></fieldset></dl></div>

                • <bdo id='YX6gc'></bdo><ul id='YX6gc'></ul>
                  <tfoot id='YX6gc'></tfoot>

                  <small id='YX6gc'></small><noframes id='YX6gc'>

                • 本文介绍了源代码和 DOM 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  • 在我的应用中,我想处理 Google 翻译定义,例如歌曲"一词的定义

                  • 当我检查返回的 http 消息时,它不包含短诗"表达.

                  • 但在 Safari 的 DOM 树视图中,我可以看到短诗"信息.

                  • 这是因为在加载页面后,一些 JavaScript 代码做了一些魔法?你如何在 iOS 应用中获得 DOM 树?UIWebView 可以做到这么神奇?
                  • This is because after loading page some JavaScript code do some magic? How would you get DOM tree in an iOS app? UIWebView can do such a magic?

                  推荐答案

                  页面的源代码和页面的 DOM 的概念相似,但又不同.源是未经任何客户端脚本掺杂的原始 HTML.它是 HTTP 请求对服务器的直接响应.另一方面,DOM 是相同的 HTML 结构,已被 JavaScript 修改.

                  The notions between a page's source and a page's DOM are similar, but different. The source is the raw HTML that is unadulterated by any client-side scripts. It is the direct response of the HTTP request to the server. The DOM, on the other hand, is the same HTML structure that has been modified by JavaScript.

                  源代码读取页面的 HTML 就像您在文本编辑器中打开它一样.源代码会在加载任何 JavaScript 之前反映您的 HTML 结构.虽然无法编辑内容,但查看浏览器从服务器接收的 HTML 很有用.

                  Source Code reads the page's HTML as if you opened it in a text editor. The source code reflects your HTML structure before any JavaScript is loaded. While the contents can’t be edited, it’s useful to see the HTML the browser receives from the server.

                  https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/ResourcesandtheDOM/ResourcesandtheDOM.html

                  尝试阅读有关 API,我认为有用于翻译和东西的 API

                  Try to read about API, I think there are API's for translate and stuff

                  这篇关于源代码和 DOM 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  <i id='gL2Kq'><tr id='gL2Kq'><dt id='gL2Kq'><q id='gL2Kq'><span id='gL2Kq'><b id='gL2Kq'><form id='gL2Kq'><ins id='gL2Kq'></ins><ul id='gL2Kq'></ul><sub id='gL2Kq'></sub></form><legend id='gL2Kq'></legend><bdo id='gL2Kq'><pre id='gL2Kq'><center id='gL2Kq'></center></pre></bdo></b><th id='gL2Kq'></th></span></q></dt></tr></i><div id='gL2Kq'><tfoot id='gL2Kq'></tfoot><dl id='gL2Kq'><fieldset id='gL2Kq'></fieldset></dl></div>
                  1. <tfoot id='gL2Kq'></tfoot>

                        <legend id='gL2Kq'><style id='gL2Kq'><dir id='gL2Kq'><q id='gL2Kq'></q></dir></style></legend>
                          • <bdo id='gL2Kq'></bdo><ul id='gL2Kq'></ul>

                              <tbody id='gL2Kq'></tbody>

                          • <small id='gL2Kq'></small><noframes id='gL2Kq'>