$.ajaxSetup()设置全局ajax参数

原创 2015年11月20日 20:10:25


文件1:AjaxSetup.html


<!DOCTYPE html PUBLIC>
<!--[if IE 7]>         <html class="no-js ie7"> <![endif]-->
<!--[if IE 8]>         <html class="no-js ie8"> <![endif]-->
<!--[if IE 9]>         <html class="no-js ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>$.ajaxSetup()设置全局ajax参数</title>
    <style>
    body {height:100px;font-size:16px;color:#048bcc;margin:5%;}
    .divFrame {width:260px;border:solid 1px #666}
    .divFrame .divTitle {padding:5px;background-color:#eee}
    .divFrame .divContent {padding:5px}
    .divFrame .divContent .clsShow {font-size:16px;}
    .btn {border:#666 1px solid;width:80px;}
    .txt {width:150px;margin-bottom:5px;margin-top:5px;}
    .clsError {margin-bottom:5px;margin-top:5px;}
    </style>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $.ajaxSetup({ //设置全局ajax选项参数
            type:"GET",
            url:"UserInfo.xml",
            dataType:"xml"
        })
        $("#divMsg").ajaxStart(function(){
            $(this).html("正在发送数据请求......").show(); //显示元素
        })
        $("#divMsg").ajaxStop(function(){
            $(this).html("已成功获取数据。<hr />").hide(); //显示后再隐藏
        })
        $("#Button1").click(function(){
            $.ajax({
                success:function(data){
                    ShowData(data,"姓名","name");
                }
            })
        }) 
        $("#Button2").click(function(){
            $.ajax({
                success:function(data){
                    ShowData(data,"性别","sex");
                }
            })
        })
        $("#Button3").click(function(){
            $.ajax({
                success:function(data){
                    ShowData(data,"邮箱","email");
                }
            })
        })
        $("#Button4").click(function(){
            $.ajax({
                type:"GET",
                url:"getData.php",
                data:{txtData:$("#txtData").val()},
                dataType:"html",
                success:function(data){
                    //alert(data);
                    $("#divTip").html("接收:"+data);
                }
            })
        })
        function ShowData(d,n,v){
            $("#divTip").empty();
            var strHTML = "";
            var id =1;
            $(d).find("User").each(function(){
                var $strUser = $(this);
                strHTML += "id:"+id+","+n+":"+$strUser.find(v).text()+"<hr />";
                id +=1;
            })
            $("#divTip").html(strHTML);
        }
    })
   
    </script>
</head>
<body>
  <div class="divFrame">
    <div class="divTitle">
        <span><input id="Button1" type="button" value="姓名" class="btn"></span>
        <span><input id="Button2" type="button" value="性别" class="btn"></span>
        <span><input id="Button3" type="button" value="邮箱" class="btn"></span>
        <span>数据:<input id="txtData" type="text" class="txt" /></span>
        <span><input id="Button4" type="button" value="发送" class="btn"></span>
        
    </div>
    <div class="divContent">
        <div id="divMsg" class="clsTip"></div>
        <div id="divTip" class="clsShow"></div>
    </div>   
  </div>
</body>
</html>

文件2:  UserInfo.xml


<?xml version="1.0" encoding="utf-8" ?>
<Info>
    <User id="1">
        <name>阿里淘</name>
        <sex>男</sex>
        <email>ali_tao@163.com</email>
    </User>
    
    <User id="2">
        <name>李建州</name>
        <sex>女</sex>
        <email>ali_li@163.com</email>
    </User>
</Info>

文件3: 
getData.php
<pre name="code" class="php"><?php
$strData = $_GET["txtData"];
echo $strData;
?>  

效果:


<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATAAAAC+CAYAAACyNlPvAAAdi0lEQVR4Ae2dTWgd2ZXHzxsmoPamJRyp3fLC9qQhceQBNelZNF76gyZemCGEQC89VkxvPGB7YQKBQCB4YRsmG+NI46UhiDD0okOQ3Wsvpps2TF47AXtsLVrdlkZY3nQLbNCcU1Wn3qn7btX7vFXv1fsXSHU/zj333t+t+r97b5X0Gnt8EA4QAAEQGEMC/zCGbUaTQQAEQCAiAAHDhQACIDC2BCBgYzt0aDgIgAAEDNcACIDA2BKAgI3t0KHhIAACEDBcAyAAAmNL4B9DtfzChQuhXMMvCIDAmBK4ffv2UFseTMCkldeuXRtqY+EMBEBgfAlcvXp16I3HEnLoSOEQBECgLAIQsLJIox4QAIGhE4CADR0pHIIACJRFAAJWFmnUAwIgMHQCELChI4VDEACBs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ik7Xlbee8h7TNFeVNa3+rSvsFifLR9cWfoBE7f7tX1qGCXFG/On+eFL+jTRPLwQk2yZ2D59Qpn6y7bx1kl+l+7+VylPG/e1P24dfpdNIE8TBmlH6QI2SGO7KstLonvT7UsSX9mM4PgMTJprK3Hf4c7KfDbB01hIVuhw4V8o2DY0P31GdKL1FNHmIQwCwyIQQsAq3cQfFpjYj3wq89/vPeaZhG85M9zKIm8iVvYnQBX9ueSnee8/7vy3ouJcZlMP3oF49QcapaomUO0e2FB7H/8JzPkefPYyW3Jt3bhU60vroTkt02Q53P8Sk2jhBL+Qy+LUWJW/V2wXKH1XK303rVU7QiAwNgRqJGBjw7xzQ5O/U/T+DWPn0qmFiNjeiXhmmr7XmuTK3tyrK+0b/WlhBEBgDAhAwMZgkAZrYu8z08HqQ2kQKI9AjfbAyoOGmkAABEaDAARsNMYBrQABEOiDAASsD2goAgIgMBoEIGCjMQ5oBQiAQB8EIGB9QEMREACB0SAAARuNcUArQAAE+iAAAesDGoqAAAiMBoHS3wP70x//MBo9RytAAASCEPjZL34ZxK/PaekCVmbnfB1GGgiAQH0IYAlZn7FET0Bg4ghAwCZuyNFhEKgPAQhYfcYSPQGBiSMAAZu4IUeHQaA+BCBg9RlL9AQEJo4ABGzihhwdBoH6EICA1Wcs0RMQmDgCELCJG3J0GATqQwACVp+xRE9AYOIIQMAmbsjRYRCoDwEIWH3GEj0BgYkjAAGbuCFHh0GgPgQgYPUZS/QEBCaOQND/RiFfJY4DBEAABEIRaOzxEco5/IIACIBASAJYQoakC98gAAJBCUDAguKFcxAAgZAEIGAh6cI3CIBAUAIQsKB44RwEQCAkAQhYSLrwDQIgEJQABCwoXjgHARAISQACFpIufIMACAQlAAELihfOQQAEQhKAgIWkC98gAAJBCUDAguKFcxAAgZAEIGAh6cI3CIBAUAL/D8ECKYSpNnoeAAAAAElFTkSuQmCC" alt="" />


版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

ajax设置默认值 ajaxSetup

ajax设置默认值 ajaxSetup

【AJAX】使用ajaxSetup()方法设置全局Ajax默认选项

很好理解,把公共的部分放在ajaxSetup()中,免得每次调用ajax()时都要重写一遍。 功能:使用ajaxSetup()方法设置Ajax请求时的全局性配置选项,完成检测输入数据奇偶性和是否大于0...

[JQ权威指南]$.ajaxSetup()方法全局设置Ajax

(1)功能描述:设置三个按钮,分别通过.ajax()方法请求一个XML文档中的某部分数据并将回调的数据展示在页面中。在请求前,使用.ajax()方法请求一个XML文档中的某部分数据并将回调的数据展示在...

ajax 全局事件 和 各个参数用法

/*context 类型:Object 这个对象用于设置 Ajax 相关回调函数的上下文。也就是说,让回调函数内 this 指向这个对象 (如果不设定这个参数,那么 this 就指向调用...

jQuery Ajax 设置请求头

在项目中采用token来验证用户登录,运作机制大致如下 用户首次登录成功时,server-end发送token到客户端,client-end存入cookie。 用户做任何请求操作时,在ajax的hea...

AJAX请求 $.ajaxSetup方法的使用

jQuery.ajaxSetup()函数用于设置AJAX的全局默认设置。 该函数用于更改jQuery中AJAX请求的默认设置选项。之后执行的所有AJAX请求,如果对应的选项参数没有设置,将使用更改后的...

$.ajaxSetup 设置contentType 引起的springmvc 注入值失败

近日在做一个springmvc的项目,由于第一次使用,所有难免会碰到一些问题。但是昨天碰到的一个问题太奇葩了。描述如下: 我在后台定义了一个controller,通过modelattribute进行值...

$.ajaxSetup

语法 $.ajaxSetup(name:value, name:value, ...) 设置全局 AJAX 默认选项。 既然是全局默认选项,所以,该项中设置的参数会影响所有的$.ajax请求如$...

springMVC fromdata表单上传文件+ajax ajaxSetup loading效果

基于form表单的文件上传 1:基本环境配置 首先导入jar包: 然后在Springmvc配置文件里添加 500
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)