全国城市部分js

摘要:
VarareaJson22={“id”:“0”,“name”:“national”,“parentId”:null,“checked”:false,“isParent”:“true”,“icon”:null”,“type”:null;“lng”:null、“lat”:空,“level”:0,“pinyin”:“qg”,“position”:null
    var areaJson22 = {
        "id": "0",
        "name": "全国",
        "parentId": null,
        "checked": false,
        "isParent": "true",
        "icon": null,
        "type": null,
        "lng": null,
        "lat": null,
        "level": 0,
        "pinyin": "qg",
        "position": null,
        "children": [{
            "id": "110000",
            "name": "北京",
            "parentId": "0",
            "checked": false,
            "isParent": "true",
            "icon": null,
            "type": null,
            "lng": "116.405289",
            "lat": "39.904987",
            "level": 1,
            "pinyin": "bj",
            "position": "tr_0",
            "children": [{
                "id": "110100",
                "name": "北京市",
                "parentId": "110000",
                "checked": false,
                "isParent": "true",
                "icon": null,
                "type": null,
                "lng": "116.405289",
                "lat": "39.904987",
                "level": 2,
                "pinyin": "bjs",
                "position": "tr_0 tr_110000",
                "children": [{
                        "id": "110101",
                        "name": "东城区",
                        "parentId": "110100",
                        "checked": false,
                        "isParent": "false",
                        "icon": null,
                        "type": null,
                        "lng": "116.418755",
                        "lat": "39.917545",
                        "level": 3,
                        "pinyin": "dcq",
                        "position": "tr_0 tr_110000 tr_110100",
                        "children": [

                        ],
                        "open": false
                    },
                    {
                        "id": "110102",
                        "name": "西城区",
                        "parentId": "110100",
                        "checked": false,
                        "isParent": "false",
                        "icon": null,
                        "type": null,
                        "lng": "116.366791",
                        "lat": "39.91531",
                        "level": 3,
                        "pinyin": "xcq",
                        "position": "tr_0 tr_110000 tr_110100",
                        "children": [

                        ],
                        "open": false
                    }
                ]
            }]
        }]
    };
    console.log(posJson);

免责声明:文章转载自《全国城市部分js》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇linux mce的一些相关内容和用户态监控的设计方法nginx配置时server_name配的不一样还能正常访问下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

qt 界面去掉系统边框

该代码在Qt5框架编辑,使用该类时, 直接继承这个类就可以了。 实现了拖拽功能和关闭功能,如果需要放大缩小功能, 需自己实现。 1 #ifndef CUSTOMIZE_QWIDGET_H 2 #define CUSTOMIZE_QWIDGET_H 3 #include <QWidget> 4 #include <QMouseE...

在移动端H5开发中(关于安卓端position:fixed和position:absolute;和虚拟键盘冲突的问题,以及解决方案)

一、在开发移动端webapp时,我们经常会遇到这样的问题,当我们需要在页面底部固定一个logo或者说明时,往往会采用position:fixed进行固定定位或者absolute定位到最底部 这是一个很常规的操作,但是当页面上有input输入框时,当用户点击输入的时候,虚拟键盘被拉起,会造成我们在底部定位的内容,被谈起,而遮挡我们的输入框,造成无法输入或者界...

Android RecyclerView 快速平滑返回顶部

先看下实现的效果,没效果什么都白扯 下面直接上方法: //目标项是否在最后一个可见项之后 private booleanmShouldScroll; //记录目标项位置 private intmToPosition; //目标项是否在最后一个可见项之后 private boolean mShouldScroll; //记录目标项位...

前端重点题目汇总

1 . Blob 对象中的type属性表示的文件是 MIME 类型。   Blob构造函数返回一个新的Blob对象,基本语法是 var aBlob = new Blob( array, options );   其中 array 是 ArrayBuffer, ArrayBufferView, Blob, DOMString 等对象构成的 Array ,或者...

对象池技术和通用实现GenericObjectPool

对象池技术其实蛮常见的,比如线程池、数据库连接池 他们的特点是:对象创建代价较高、比较消耗资源、比较耗时; 比如 mysql数据库连接建立就要先建立 tcp三次握手、发送用户名/密码、进行身份校验、权限校验等很多步骤才算是 db连接建立成功;要是每次使用的时候才去创建会比较影响性能,而且也不能无限制的创建太多 所以,这种对象使用完后不立即释放资源,一般是先...

android应用程序中获取view的位置

android应用程序中获取view的位置_雨枫技术教程网  我们重点在获取view的y坐标,你懂的... 依次介绍以下四个方法:   1.getLocationInWindow   int[] position = new int[2];  textview.getLocationInWindow(position);  System.out.pr...