var ajaxTool = { setting : { method : 'get', url : location.href, data : '', callback : function(){alert('兄弟,你忘记写回掉函数了吧')} }, ajax :function(json){ //初始化数据 var This = this this.extend(this.setting,json); //创建一个xhr对象 var xhr = new XMLHttpRequest(); //…