jquery当中Ajax的基础原理是什么?jquery的Ajax到底是怎么编出来的?jquery的Ajax底层代码是什么?

例 3.1(AjaxPrerequ1.html) 



<html>
<head>
<script>
/* 马克-to-win:这个例子和jquery没任何关系。就是自己如何从头做一个jquery。the following
is a json format, which can have a function as a pair. */
var $={
    name:'马克-to-win',
    getById:function(obj){

        return document.getElementById(obj);

    },
    set:function(){
    /*下面的$可以换成this,结果是一样的*/
        $.getById('show').innerHTML = "哈苏大苏打靠近哈快速地结合看 "+this.name;
   
    }

}
</script>

更多参考原文地址:http://www.mark-to-win.com/index.html?content=Javascript/jsUrl.html&chapter=Javascript/js9_web.html#AjaxPrerequ

猜你喜欢

转载自blog.csdn.net/mark_to_win/article/details/88689996