• <legend id='1vd3I'><style id='1vd3I'><dir id='1vd3I'><q id='1vd3I'></q></dir></style></legend>

    <small id='1vd3I'></small><noframes id='1vd3I'>

    1. <tfoot id='1vd3I'></tfoot>
      • <bdo id='1vd3I'></bdo><ul id='1vd3I'></ul>

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

      1. 为什么叫 XMLHttpRequest?

        时间:2023-05-15
          <tbody id='74iOF'></tbody>
        <i id='74iOF'><tr id='74iOF'><dt id='74iOF'><q id='74iOF'><span id='74iOF'><b id='74iOF'><form id='74iOF'><ins id='74iOF'></ins><ul id='74iOF'></ul><sub id='74iOF'></sub></form><legend id='74iOF'></legend><bdo id='74iOF'><pre id='74iOF'><center id='74iOF'></center></pre></bdo></b><th id='74iOF'></th></span></q></dt></tr></i><div id='74iOF'><tfoot id='74iOF'></tfoot><dl id='74iOF'><fieldset id='74iOF'></fieldset></dl></div>

      2. <tfoot id='74iOF'></tfoot>
      3. <legend id='74iOF'><style id='74iOF'><dir id='74iOF'><q id='74iOF'></q></dir></style></legend>

              <bdo id='74iOF'></bdo><ul id='74iOF'></ul>

                <small id='74iOF'></small><noframes id='74iOF'>

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

                  问题描述

                  限时送ChatGPT账号..

                  我一直想知道为什么这个对象被这样称呼?

                  I always wonder why this object is called like that?

                  您的请求正文不需要是 XML 格式.此外,从服务器接收的数据可以以 JSON、XML、HTML 或纯文本的形式获取.XML 在这个对象中并不重要.这是某种陈词滥调吗?这个对象最初创建时是什么?

                  The body of your request does not need to be in XML format. Also, data received from server can be fetched as JSON, XML, HTML, or plain text. XML does not play an essential part in this object. Is this some kind of a cliché? What is this object used to be when it was first created?

                  推荐答案

                  XMLHttpRequest 是由 Microsoft 的 Outlook Web Access 团队发明的.这个高度创新的团队之前给了我们远程脚本,这是AJAX"风格开发的开始.远程脚本类似于 JSONP,但过于复杂(它使用 Java 小程序,最重要的是).我不记得是否可以在 IE 4 或 5 中动态注入 <script> 元素,但这似乎是不可能的.否则,JSONP 似乎足够强大,可以消除对 XMLHttpRequest 的需求.

                  XMLHttpRequest was invented by Microsoft's Outlook Web Access team. This highly innovative team previously gave us remote scripting, which was the the beginning of "AJAX" style development. Remote scripting was like JSONP, but overly complicated (it used a Java applet, of all things). I don't remember whether it was possible to dynamically inject <script> elements in IE 4 or 5, but it seems like that wasn't possible. Otherwise, JSONP seems powerful enough to eliminate the need for XMLHttpRequest.

                  Outlook 团队正在将 XML 从服务器传输到客户端,因此命名 ActiveX 控件以反映其当时的主要用途.它被包含在 MSXML 解析器中.

                  The Outlook team was transferring XML from server to client, so the ActiveX control was named to reflect its primary use at the time. It was included as part of the MSXML parser.

                  当 Firefox 进入游戏并实现他们自己的版本时,XMLHttpRequest 的使用更像今天,而用于 XML 的则更少,但 Firefox 还是使用了相同的名称.由于两家最大的浏览器制造商创建了一个具有相同名称、界面和功能的对象,w3c 坚持使用现有名称.太糟糕了,有人没有对这个误称更恶毒,并坚持我们称它为更准确的东西,比如 HttpRequest.

                  By the time Firefox got in on the game and implemented their own version, XMLHttpRequest was being used more like it is today, and less for XML, but Firefox used the same name anyway. With the two biggest browser makers creating an object with the same name, interface, and functionality, the w3c stuck with the existing name. It's too bad someone didn't make more of a stink about the misnomer and insist we call it something more accurate like just HttpRequest.

                  我不知道AJAX"是如何或为什么成为一个流行的术语来描述网页与服务器交互而不需要完整的页面加载的编程风格.与XMLHttpRequest"相比,AJAX"用词不当,因为它不仅暗示 XML 是一个重要方面,而且还没有提供服务器交互的指示.我可以使用 JavaScript 异步处理 XML,而无需与服务器通信.

                  I don't know how or why "AJAX" became the popular term to describe the programming style where a web page interacts with the server without requiring a complete page load. "AJAX" is a worse misnomer than "XMLHttpRequest" since it not only implies XML is an essential aspect, but further provides no indication of server interaction. I can process XML with JavaScript asynchronously without ever communicating with a server.

                  这篇关于为什么叫 XMLHttpRequest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 XMLHttpRequest 上传大文件时的进度条 下一篇:使用 AJAX (XMLHttpRequest) 查询 Wikipedia 的 API

                  相关文章

                  <tfoot id='8Dv30'></tfoot>
                • <small id='8Dv30'></small><noframes id='8Dv30'>

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

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