XMLHttpRequest与HttpRequest

编程入门 行业动态 更新时间:2024-10-11 05:30:09
本文介绍了XMLHttpRequest与HttpRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人知道XMLHttpRequest可以使网页做什么吗,而普通的HttpRequest不能做到?

Does anyone know, what an XMLHttpRequest enables a web page to do, which cannot be done using a normal HttpRequest?

推荐答案

XMLHttpRequest 一个标准的javascript对象,可让您使用javascript从浏览器发出HTTP请求.

XMLHttpRequest in a standard javascript object that allows you to make HTTP Requests from the browser in javascript.

HttpRequest 是服务器端对象,代表对服务器的请求.

HttpRequest is a server side object that represents a request to the server.

总而言之-一种在浏览器中工作,另一种在Web服务器中工作.他们还具有完全不同的角色. XMLHttpRequest用于在浏览器中获取Web资源. HttpRequest代表传入请求.

In summary - one works in the browser, the other in the web server. They also have completely different roles. XMLHttpRequest is for fetching web resources within the browser. HttpRequest represents an incoming request.

更多推荐

XMLHttpRequest与HttpRequest

本文发布于:2023-11-24 19:42:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626562.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:XMLHttpRequest   HttpRequest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!