国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - Kann das Senden einer HTTP-Anfrage in einer Nicht-Browser-Umgebung wie NodeJS als Ajax bezeichnet werden?
給我你的懷抱
給我你的懷抱 2017-05-31 10:41:45
0
2
1337

AJAX steht für ?Asynchronous JavaScript and XML“ (asynchrone JavaScript- und XML-Technologie)

給我你的懷抱
給我你的懷抱

Antworte allen(2)
洪濤

一般來說,我們只把 XHR(XMLHttpRequest) 的請求成為 ajax。

但是當(dāng) fetch 發(fā)布后,我們一般把基于 xhr 的網(wǎng)絡(luò)請求稱為 傳統(tǒng) ajax,用于區(qū)分 fetch(fetch 不是基于
xhr)。

我們看 fetch 的描述:

The Fetch API provides a JavaScript interface for accessing and manipulating parts of the HTTP pipeline, such as requests and responses. It also provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the network.

后面的意思是:跨網(wǎng)絡(luò)異步獲取資源。

也許以后就沒有 ajax 這種說法了。畢竟 ajax 中已經(jīng)沒有了 x。

滿天的星座

wiki上其中兩句

  1. AJAX 即 “Asynchronous JavaScript and XML”

  2. Ajax不需要任何瀏覽器插件,但需要用戶允許JavaScript在瀏覽器上執(zhí)行。

所以不叫 ajax


mdn 上也特別指出了jax里最重要的是 XMLHttpRequest object

Asynchronous JavaScript + XML, while not a technology in itself, is a term coined in 2005 by Jesse James Garrett, that describes a "new" approach to using a number of existing technologies together, including: HTML or XHTML, Cascading Style Sheets, JavaScript, The Document Object Model, XML, XSLT, and most importantly the XMLHttpRequest object.

也能說明其他環(huán)境下不算是ajax了 這個應(yīng)該只是普通的http請求 跟瀏覽器發(fā)起請求來訪問某個網(wǎng)站類似。


wiki: https://zh.wikipedia.org/wiki...
mdn: https://developer.mozilla.org...

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage