• 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#

    各参数、事件详解

  • 相关阅读:
    raspberry pi (树莓PI)使用socket向PC发送视频流
    树莓PI交叉编译BOOST库(asio网络例子)
    远程调试树莓PI
    opencv车速检测
    屏蔽同步(JAVA)
    linux常用命令记录
    虚拟机中Ubuntu设置固定IP方法
    java笔记01-反射
    java笔记00-目录
    mysql由于外键关联无法删除数据
  • 原文地址:https://www.cnblogs.com/LLLONG/p/2955991.html
Copyright © 2020-2023  润新知