zoukankan      html  css  js  c++  java
  • json

    json数据:

    [
        {
            "AttributeSetsID": "29",
            "AttributeSetsValues": "主体",
            "children": [
                {
                    "AttributeID": "25",
                    "AttributeValues": "尺寸"
                },
                {
                    "AttributeID": "26",
                    "AttributeValues": "重量"
                }
            ]
        },
        {
            "AttributeSetsID": "30",
            "AttributeSetsValues": "网络a",
            "children": [
                {
                    "AttributeID": "27",
                    "AttributeValues": "长度"
                },
                {
                    "AttributeID": "28",
                    "AttributeValues": "宽度"
                },
                {
                    "AttributeID": "29",
                    "AttributeValues": "高度"
                }
            ]
        },
        {
            "AttributeSetsID": "32",
            "AttributeSetsValues": "基本参数",
            "children": [
                {
                    "AttributeID": "30",
                    "AttributeValues": "面积"
                }
            ]
        }
    ]

       $.post("../Handler/AddGoods.ashx?type=GetGoodsAttributes&category=" + $("#category").val(), {}, function (data) {
                            
                             
                                    $.each(data, function (i, item) {

                                        alert(item.AttributeSetsValues);
                                        $.each(item.children, function (i, item1) {

                                            alert(item1.AttributeValues);

                                        })
                                    })
                            }, 'json')

  • 相关阅读:
    JS 深拷贝方法
    数字图像处理中的混叠
    RoIAlign理解
    关于python项目vscode 提示import could not be resolved的问题解决
    HTTPS网站证书申请,HTTPS的安全特性
    使用多域名SSL证书 一种免费的证书申请方式
    During secondary validation: DNS problem: query timed out looking up CAA for ***
    The Next Gen Database Servers Powering Let's Encrypt
    Jenkins 构建及回滚任务
    Go优雅追踪堆栈错误包
  • 原文地址:https://www.cnblogs.com/zhangweixin/p/4000108.html
Copyright © 2011-2022 走看看