首页 技术 正文
技术 2022年11月23日
0 收藏 335 点赞 4,192 浏览 19974 个字

  最近写程序的时候经常遇到使用ajax获取数据的问题,刚好昨天遇到ajax写三级级联问题,自己写了一个简单的级联。对于服务端获取数据的就不多写了,客户端的ajax发送请求我在这里详细说一下,因为我也没专门学过jQuery的ajax也都是在网上看的资料,希望我的理解对大家有帮助吧。

  <script type=”text/javascript”>
        var ctx = ‘<%=request.getContextPath()%>’;
        //获取一级职位分类
        window.onload=function(){
                 $.ajax({
                 url:ctx+’/hr/base/job/queryJobLevel1.htm’,
                  type:’post’,
                  contentType:”application/json”,
                  data:'{}’,
                dataType:’json’,  
                 success:function(data) {  
                $(“#level1”).empty();
                   $(“#level1”).append(“<option value=”>请选择职位类型</option>”);
                   for(var i=0;i<data.data.length;i++){
                       $(“#level1”).append(“<option value='”+data.data[i].id+”‘>”+data.data[i].name+”</option>”);
                   }
             },  
              error : function() {  
                   alert(“异常!”);  
             }  
         });
        }
       function addSub(value){
        if(“”!=value){
        $.ajax({
                 url:ctx+’/hr/base/job/queryJobLevel2.htm’,
                  type:’post’,
                  contentType:”application/json”,
                  data:'{rid:value}’,
                dataType:’json’,  
                 success:function(data) {  
                   $(“#level2”).empty();
                   $(“#level2”).append(“<option value=”>请选择职位类型</option>”);
                   for(var i=0;i<data.data.length;i++){
                       $(“#level2”).append(“<option value='”+data.data[i].id+”‘>”+data.data[i].name+”</option>”);
                   }
             },  
              error : function() {  
                   alert(“异常!”);  
             }  
         });
        }
       }
       
       function addSub2(value){
        if(“”!=value){
        $.ajax({
                 url:ctx+’/hr/base/job/queryJobLevel3.htm’,
                  type:’post’,
                  contentType:”application/json”,
                  data:'{rid:value}’,
                dataType:’json’,  
                 success:function(data) {  
                   $(“#level3”).empty();
                   for(var i=0;i<data.data.length;i++){
                       $(“#level3”).append(“<option value='”+data.data[i].id+”‘>”+data.data[i].name+”</option>”);
                   }
             },  
              error : function() {  
                   alert(“异常!”);  
             }  
         });
        }
       }

做了三个下拉框,好像这样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5w5tewM9m64l1zgK9w7cPndB9D9Ckux19ATT+3Lrb38nRxvF76RjOO6P+nOvmeA2RvYa9lYsu0Pud5v5EktErb9AXvkaZv+il61AOwSz/jWLNqVD6wIud4vDrRI4GhA/gGIhTNqnVUA4EksOt8PLRI4GpB/AKKYtggevBpokcDRgPwDEOA+yc0J/FzHfj1lIPxdF+UaTAMtEjgaOPAXAAAAOByQfwAAAOBwQP4BAACAwwH5BwAAAA4H5B8AAAA4HL78W3tZmz86m2QBAAAA4EWB/AMAAACHI1L+AQAAAPBz2FT+cdAFAAAAsEe0/JuHWVkHWTpBH8ZJWvrsrA/nbK22Mn/EMZcAAADADknuZ1ePZ1My1r+t68OVzjG7xMaZ7SUp5p/DAQAAAIDVSb4r52TrePnXYm/6AzJxu6+0KJLi4p1UDgAAAIAnkHgW/AT51yMHw8X/mpJfHdBmRTH7KG4AAAAArEjiif0U+VfdZzkMHnSfpTsXYMbPigJ+AAAAAMAe+B/TEnvZL3ijTAAAAABJRU5ErkJggg==" alt="" />

之前研究了很久,做完才发现其实也不是特别的难,希望对大家有帮助。

上一篇: 数据结构RMQ
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,910
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,435
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,250
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,061
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,693
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,731