马冲的博客

导航

XHR对象

<!doctype html>

<html>
    <head>
        <title>XHR对象</title>
        <meta charset="utf-8">
    </head>
    <body>
    
    </body>
</html>

<script>
    //创建xhr对象
    var xhr=new XMLHttpRequest;
    for(var i in xhr){
        console.log(i+'---------------------'+xhr[i]);
    }
</script>

 

posted on 2018-11-06 00:41  马冲的博客  阅读(111)  评论(0编辑  收藏  举报