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#

    各参数、事件详解

  • 相关阅读:
    iOS开发 当前时间 时间戳 转换
    iOS开发 下滑隐藏Tabbar
    iOS开发 浅见runloop
    iOS开发 检测版本更新
    IOS开发 二维码功能的实现
    级数
    算法-快速排序
    struts2.0中struts.xml配置文件详解【转】
    javascript原型【转】
    AOP各种的实现【转】
  • 原文地址:https://www.cnblogs.com/LLLONG/p/2955991.html
Copyright © 2011-2022 走看看