XMLHttpRequest - ajax核心
-运用HTML和CSS来实现页面,表达信息;
-运用XMLHttpRequest和web服务器进行数据的异步交互;
-运用JavaScript操作DOM,实现动态局部刷新;
创建XMLHttpRequest对象:
1 var request; 2 if(window.XMLHttpRequest){ 3 request = new XMLHttpRequest();//IE7+,Firefox,CHrome,Opera,Safar 4 }else{ 5 request = new ActiveXObject("Microsoft.XMLHTTP");//IE6,IE5 6 }
原文:http://www.cnblogs.com/mirsent/p/5974852.html