学习笔记第1天-Ajax


1. Ajax是什么?

    Ajax的全称是:Asynchronous JaaScript and XML(异步的JavaScript和XML),是一种无需重新加载整个网页的情况下能够更新部分网页的技术。

2. 如何获取XMLRequest对象?

var request;

if(window.XMLHttpRequest){

request = new XMLHttpRequest();

}else{

request new ActiveXObject("Microsoft.XMLHTTP");

}




猜你喜欢

转载自blog.csdn.net/youmengruoling/article/details/77902556