zoukankan      html  css  js  c++  java
  • Create Async Tree 的使用

    $(document).ready(function (){
        $('#div_tree').tree({
              url: 'userinfo_doUserinfoList?id=0',
              lines:true,
               onClick:function(node){
                if(node.state==null){
                    $.ajax({
                        type:"post",
                        dataType:"text",
                        url:"userinfo_doFindGpsInfo?id="+node.id,
                        success: function(data){
                            if(data!=""){
                                var jsonObj= eval('('+data+')');
                                addMarker(jsonObj);
                            }else{
                                map.clearOverlays();
                                alert("没有找到该用户的信息!");
                            }
                        }
                    });
                }
                   $(this).tree('toggle', node.id);
            }
        });
    });

    http://www.jeasyui.com/documentation/index.php#

    各参数、事件详解

  • 相关阅读:
    Hackerrank alien-flowers(数学公式)
    Hackerrank manasa-and-combinatorics(数学推导)
    Codeforces 314B(倍增)
    Codeforces Round #403(div 2)
    Mutual Training for Wannafly Union #6
    几道splay
    高数(A)下 第十章
    Bestcoder #92
    codevs1700 施工方案第二季
    poj2631
  • 原文地址:https://www.cnblogs.com/LLLONG/p/2955991.html
Copyright © 2011-2022 走看看