当前位置: 代码迷 >> Java Web开发 >> 求指点一个实现三级下拉框的Jquery或Ajax脚本(已有JSON数据)解决方案
  详细解决方案

求指点一个实现三级下拉框的Jquery或Ajax脚本(已有JSON数据)解决方案

热度:2312   发布时间:2016-04-10 22:54:21.0
求指点一个实现三级下拉框的Jquery或Ajax脚本(已有JSON数据)
JSON数据示例:
[
    {
        "reports": [
            {
                "companies": [
                    {
                        "companyName": "company1"
                    }, 
                    {
                        "companyName": "company2"
                    }
                ], 
                "rptName": "rpt1"
            }, 
            {
                "companies": [
                    {
                        "companyName": "company1"
                    }, 
                    {
                        "companyName": "company2"
                    }
                ], 
                "rptName": "rpt2"
            }
        ], 
        "typeName": "type1"
    }, 
    {
        "reports": [
            {
                "companies": [
                    {
                        "companyName": "company1"
                    }, 
                    {
                        "companyName": "company2"
                    }
                ], 
                "rptName": "rpt1"
            }, 
            {
                "companies": [
                    {
                        "companyName": "company1"
                    }, 
                    {
                        "companyName": "company2"
                    }
                ], 
                "rptName": "rpt2"
            }
        ], 
        "typeName": "type2"
  相关解决方案